Apologies if this documented somewhere, but I couldn't find an answer.
We are trying to improve the loading time for our Angular application. Currently it takes 8seconds to load. About 3 to download all the resources and 5 to compile the app.
We can't use AOT right now due to some server side generation of html, but this is in scope for the future.
So, if we use lazy loading to only load modules when their routes are loaded, will we see a speed up in our compilation? IE does it compile the bare minimum, then compiles the modules being routed to just before navigation?
Lazy loading won't improve your compilation time for the app, but will speed up the loading of client side pages.
With lazy loading only module required items are downloaded, so lightweight modules will be loaded faster, but if you have "heavy" modules they will take some time to be loaded.
Lazy loading is a good solution if it's a common case that your user only navigate few modules of your site, without the need to load all the resources the site require.