Skip to content
Latchkey

Code Splitting - CI/CD Glossary Definition

Code splitting divides your bundle into chunks so users download only the code they need for the current view.

Code splitting breaks a bundle into multiple smaller chunks that load on demand rather than all at once, improving initial load time. It is commonly triggered by dynamic imports or route boundaries.

Instead of one large bundle, code splitting emits several chunks that the app fetches lazily. It reduces the initial payload and speeds up first render. In CI, bundle analysis can verify that splitting keeps each chunk under a size budget.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →