Tutorial hero
Lesson icon

What Does Lazy Loading Do in Ionic?

Originally published July 11, 2017 Time 2 mins

Lazy loading has been around for a while now, and it’s likely that you’ve had at least some experience with it if you have been building Ionic applications recently (the Ionic CLI page generator uses lazy loading by default). If you aren’t familiar with lazy loading, then you might be interested in checking out this video.

To enable lazy loading on a page we need to add the @IonicPage decorator and create a module for that page. A lot of people probably understand that lazy loading has something to do with making the application perform better, but it’s not so obvious what it actually does.

In this video tutorial, I walk through the difference between using lazy loading and not using lazy loading. I have two identical example applications (one with lazy loading), and we use a debugger to inspect what is going on behind the scenes.

Here’s the video:

Learn to build modern Angular apps with my course