Code splitting divides a large JavaScript bundle into an initial chunk and chunks for later routes. It can reduce initial transfer, while adding later requests and loading states.
The demo contrasts downloading everything up front with downloading the home chunk first, then adding a route chunk after navigation.
When to use
Use it when initial JavaScript transfer or parsing is large, splitting by route or feature.