Dynamic and Lazy Loading: A Deep Dive
summary
Detailed, actionable coverage of how Angular actually lazy loads: shows the dynamic import('d3') pattern that produces a separate bundle and a demo that proves it, explains CLI → webpack/bazel and the lazyModules array in angular.json, exposes the surprising commons chunk behavior (shared code moves into a common bundle and turning it off duplicates bytes), and ships an open‑source hero loader that registers a lazy bundle with Angular and injects a chosen component (via bootstrap array) into the DOM when triggered.
AI-written summary · about
chapters (7)
- 0:00Start
- 3:55Lazy Loading - High Level
- 6:11Moving Parts of Lazy Loading
- 7:09The Magic String
- 8:41Two Steps of Lazy Loading
- 9:50Misconception
- 22:18Lazy Loading non-Angular Code
related talks
29mAdv Lazy Loading w/ Angular
34mLazy-loading techniques beyond (Angular) router
27mLazy Loading Web Applications
30mStep by Step Improving Startup Performance with Lazy Loading in Angular
45mLazy Loading: Supercharge your Angular apps!
34mImproving Start-up Performance with Lazy Loading in Angular 2
32mImproving Startup Performance with Lazy Loading in Angular
29mAngular Router - Let's Get Lazy!
