5 ms·
8mb is nuts. Is this the minified & gzipped size? Either way, code splitting and dead code elimination are your friends. I wonder if you're including multiple v
by christophilus 9y ago
8mb is nuts. Is this the minified & gzipped size? Either way, code splitting and dead code elimination are your friends. I wonder if you're including multiple versions of the same libraries, or pulling in heavy libraries for only a handful of features?
Is your code available somewhere for us to look at?
- Kpourdeilami 9y ago8mb is the local version of the code without gzip and minification. I just tested at the minified version and it is 2.5 megabytes
- johncoltrane 9y ago2.5 is still large. Some ideas: * split your application into several smaller ones, one for each "domain", with one bundle for your library code and one bundle for each "domain" * use CDNs instead of bundling third party libraries * make sure you import only what you use