Performance·Intermediate·Coding·1 min read
What's the difference between code splitting and lazy loading?
Short interview answer
Code splitting is the build-time act of dividing a bundle into separate chunks. Lazy loading is the runtime decision to actually fetch one of those chunks only when it's needed, rather than during the initial page load.
Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.