You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code of the application should be splitted across multiple JS files, to improve loading times. So that only the code is loaded that is currently needed.
I think the easiest solution would be to implement code splitting based on the routes.
One article that describes how to implement this, is available here.
The text was updated successfully, but these errors were encountered:
Kavakuo
changed the title
Optimize Webpack configuration
Optimize Webpack configuration - Code splitting
Apr 16, 2020
Ok, did some investigations. The changes from #96 work as expected, but the entry point of the application is still too large.
To run the application without cache a 642KB blob is needed, containing the vue runtime and the bootstrap stuff. The problem is, that this blob contains ALL bootstrap components, no matter if they are needed or not.
The bootstrap part alone is already 400KB large.
To get an idea how large the application is, set the speed limiter in the dev tools of chrome to "fast 3G" and try to load the site, ideally the production build served from a local web server...
I added the webpack-bundle-analyzer to the Vue config on the lazy-load branch, so that we can actually see how the bundles are split up and what is inside.
Uh oh!
There was an error while loading. Please reload this page.
The code of the application should be splitted across multiple JS files, to improve loading times. So that only the code is loaded that is currently needed.
I think the easiest solution would be to implement code splitting based on the routes.
One article that describes how to implement this, is available here.
The text was updated successfully, but these errors were encountered: