Skip to content

Minimize app.js bundle size - #3875

Merged
josephsnyder merged 4 commits into
Kitware:masterfrom
williamjallen:minimal-bundle-size
Jul 27, 2026
Merged

Minimize app.js bundle size#3875
josephsnyder merged 4 commits into
Kitware:masterfrom
williamjallen:minimal-bundle-size

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

The app.js entry point loads first on every page load, blocking any data loading from occurring until the asset is downloaded, parsed, and run. This PR attempts to shrink the size of the compiled asset as much as possible by doing the following things:

  • Using named imports for better tree shaking.
  • Moving axios initialization to ApiLoader.js, a library which is only used on a dwindling handful of pages at this point.
  • Removing the unused apollo-components library entirely since it's no longer used, and shouldn't be used in the future.

@josephsnyder josephsnyder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josephsnyder
josephsnyder added this pull request to the merge queue Jul 27, 2026
Merged via the queue into Kitware:master with commit 6ca5367 Jul 27, 2026
7 checks passed
@williamjallen
williamjallen deleted the minimal-bundle-size branch July 27, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants