Skip to content

Minimize app.js bundle size#3875

Open
williamjallen wants to merge 4 commits into
Kitware:masterfrom
williamjallen:minimal-bundle-size
Open

Minimize app.js bundle size#3875
williamjallen wants to merge 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.

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.

1 participant