Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

webpack: enable chunking of application JavaScript #246

Description

@jayaddison

Is your feature request related to a problem? Please describe.
The application is bundled for container deployment using webpack, and the resulting build process produces a few minifed JavaScript code files.

Some of the modules used in each of the JavaScript code files (entrypoints) is shared -- and if we can enable webpack's chunking (also known as: code splitting) feature, then some of the shared modules can be placed into separate, reusable JavaScript files. That means: a few more files for the client to download, but a smaller total download size across all of the files.

When we attempted to enable this most recently on 2023-10-22 (e59d266) the size of the application download was reduced from ~1.45MB to ~1.30MB - a significant saving. However: at least one of the application entrypoints (window['app'] - the app entrypoint) was not available to some of the bootstrap-table code -- something to do with app.rowAttributes.

Since some JavaScript caching is performed by most browsers, including the ones we used to test e59d266 after-the-fact, and because we didn't test more extensively during development and deployment, we didn't notice the problem -- but it prevented many users from performing searches in the application for a time interval of approximately 5 hours.

Describe the solution you'd like
Enable webpack code splitting, without breaking the application.

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions