TK • Newsletter

TK • Newsletter

Engineering

Webpack Bundle Splitting & Browser Caching

How to use webpack code splitting and browser caching to improve performance

TK's avatar
TK
Feb 02, 2023
∙ Paid

Every time we deploy our SPA, we need to build it using webpack. So in every CI build, webpack generates all the JavaScript chunks we ship to production.

If we don't change the JavaScript (or TypeScript) code related to that code, webpack keeps the same name and hashcode for that bundle. If we change it, as the bundle name + hashcode is based on its cont…

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 TK · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture