Search⌘ K
AI Features

Making Use of Lazy Loading

Explore how to implement lazy loading in Angular by structuring your app with feature modules and configuring routes to load modules on demand. Understand how this approach reduces the initial download size and enhances application speed.

Another way performance can be improved is through the use of lazy loading within our application. Back in NgModules chapter, we introduced you to the concept of modules in Angular. This is how our application is structured using a module. This contains all the Components, Services, Templates, and other files that are needed for a section.

Implement lazy loading

Through modules, we can ...