I have just implemented lazy loading in my Ionic 3 app and I have noticed enhanced performance only in the development build. When I use ionic cordova run ios --prod, I still get the same bootstrap time of ~14s. Any ideas to enhance performace?
Does lazy loading actually work?
What exactly did you change?
Also post your ionic info
output please.
Yes, I can see it working from the browser network and the js chunks are loading. The performance of the app is better when I use ionic serve, but when I build the app with prod flag I get the same performance as before. Nothing changed
You should upgrade Cordova CLI, the platforms, @ionic/app-scripts
to recent versions.
Is the initial load smaller? This should improve performance.