Non-trivial optimization techniques in Angular
summary
Angular site performance goes from Lighthouse ~49 to 99 (Cloudflare variant 100) by applying concrete fixes: enable SSR one-line hydration and TransferState to avoid duplicate fetches, use NGOptimizedImage + fetchpriority and preconnect for responsive images, debug srcset with the provided Chrome script, preload route data with app initializers, add content-visibility cut render 160ms→25ms, chunk bootstrap work via scheduling/Zone flags, and swap to an RX Angular virtual-scroll that is 16× faster. All changes are open source and measured.
AI-written summary · about
chapters (16)
- 0:00Introduction and setup
- 0:26Angular performance overview
- 3:39Largest Contentful Paint optimizations
- 8:16SSR and ISR techniques
- 8:57Image optimization with NG OptimizedImage
- 13:45Debugging responsive images
- 21:37Preloading data for faster rendering
- 24:50CSS content visibility for performance
- 26:13Input (INP) in Angular
- 27:17Optimizing Angular bootstrap time
- 29:00Zone.js optimizations
- 30:50Fine-grained change detection
- 31:56Task prioritization for smooth UX
- 36:12DOM rendering order control
- 36:56Virtual scrolling performance
- 37:59Summary and resources
related talks
17mRethinking Angular Architecture & Performance
32mProfiling Bootstrap Performance of Angular Apps
45mOptimized Angular apps: smaller, faster, better
23mPerformance optimizations in Angular
31mOptimized Angular apps: smaller, faster, better
28mAccelerating Angular
31mAngular Performance: Your App at the Speed of Light
40mOptimized Angular Apps: Smaller, Faster, Better
