When you lazy load one page, all other pages are lazdy loaded automatically?


I would like to know If you have an app with 5 pages and you lazy loaded the home page (by adding a module to the home folder, IonicPage to home.ts, deleteted HomePage from declaration and entryComponents in app.module.ts and updated app.component.ts bu changing rootPage:any = HomePage; by rootPage:string = ‘HomePage’; ).

I lazy loaded my HomePage, does all other pages lazy loaded by lazy loading my HomePage?

Thank you.


You can load any page as you want, but you can not declare, for example Homepage, lazy loaded And howeveritsiscalled loaded.

Best regards, anna-liebt


Pages you decorate with IonicPage and declare with IonicPageModule will be lazy loaded.