Unpacking Bundling
summary
Eight concrete bundler moves: extract and inline only the CSS for components rendered on a page, move async data into separate dynamic-import chunks, rebundle route-specific chunks into one file to cut requests, and optionally bundle third‑party scripts at build time. Tooling includes a font pipeline called unifont, a plugin system that purges polyfills, and a scripts integration. Early results show 39% total JavaScript decrease and 66% unused JavaScript decrease on a test site; several features are experimental but already shipping.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 3:59Nu framework overview
- 8:19Eight bundler strategies
- 11:48Style inlining
- 16:29Optimizing INP with prefetching
- 20:47Font optimization at build
- 24:43Removing unused async data
- 27:33Third-party script bundling
- 30:06Combining chunks
- 34:20Replacing polyfills
- 37:35Zero-JS pages
- 38:59Nu accessibility modules
- 41:09Open source contributions
- 42:11Question and answer session








