Analyse JavaScript bundle size after compression and code splitting.
Code splitting reduces the initial load rather than the total, because shared dependencies still ship on first visit. Brotli outperforms gzip on text and is supported everywhere that matters. Compression reduces transfer but not parse time, since the engine works on expanded code, so shipping less JavaScript matters more than compressing it harder.
Bundle Size
Initial load = shared chunk + one route chunk, after tree shaking and compression
Initial load = shared chunk + one route chunk, after tree shaking and compression Code splitting reduces the initial load rather than the total, because shared dependencies still ship on first visit. Brotli outperforms gzip on text and is supported everywhere that matters.
Compression reduces transfer but not parse time, since the engine works on expanded code, so shipping less JavaScript matters more than compressing it harder.
This calculator takes 5 inputs: Raw bundle size, Tree shaking saving, Compression, Route chunks after splitting, Connection speed. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.