midAngular
What is Angular Lazy Loading and how does it improve performance?
Updated Apr 28, 2026
Short answer
Lazy loading loads modules only when needed, reducing initial bundle size.
Deep explanation
Instead of loading all modules upfront, Angular loads feature modules dynamically when a route is accessed. This improves initial load time and performance.
Real-world example
Loading admin panel only when user navigates to it.
Common mistakes
- Overusing eager loading
- not splitting modules properly.
Follow-up questions
- What is code splitting?
- Why lazy loading?