"매 bundle 의 chunk 의 분리, on-demand load 의 first-paint 단축". Code Splitting 은 dynamic import() + bundler chunking 의 결합 의 매 monolithic JS bundle 의 분해. 2026 Vite/Rspack/Turbopack 시대 에 route-level + component-level + vendor split 의 매 표준.
매 핵심
매 splitting 의 axis
Route-based: 각 page 의 separate chunk — 매 SPA / Next.js 의 default
Component-based: heavy component 의 lazy (Modal, Chart, Editor)
Vendor: node_modules 의 separate chunk — long-term cache
Dynamic feature: locale, A/B variant 의 conditional load
매 mechanism
Dynamic import(): ECMAScript spec — Promise 의 return
Bundler 의 split point detection: import() 호출 의 chunk boundary
Manifest: hashed filename 의 mapping
Preload / prefetch: <link rel="preload/prefetch"> hint
매 cost trade-off
Pro: initial bundle 의 작아짐 → faster TTI
Con: extra HTTP request, waterfall 위험 — preload 의 mitigate