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
{{ message }}
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
Whenever I add new pages in my application then it gets compiled into index.js.
Of course, it uses webpack to minify the code but till what extent would it do?
What if I want to have around 1000 pages in my application then size of index.js will get into MBs and as this gets loaded at the time of initialization of application then it will take so much time for loading the application.
How would you deal with this problem? Split index.js? but on what basis? and which part to load when? and how?
Thanks
Fahad Mullaji
The text was updated successfully, but these errors were encountered:
There is an example on this repo of how to use LazyLoaded modules. This does exactly what you need, it splits the main.js file in to chunks and takes care of loading them when they are required (when the route connectect to the module is visited).
Hey guys,
Whenever I add new pages in my application then it gets compiled into index.js.
Of course, it uses webpack to minify the code but till what extent would it do?
What if I want to have around 1000 pages in my application then size of index.js will get into MBs and as this gets loaded at the time of initialization of application then it will take so much time for loading the application.
How would you deal with this problem? Split index.js? but on what basis? and which part to load when? and how?
Thanks
Fahad Mullaji
The text was updated successfully, but these errors were encountered: