[Solved] how to make angular 4/6 faster in loading?


If loading a module while navigating takes too much time, you could consider eagerly preloading modules instead. What this does is load your main application module first and display your view, and in the background load all the other modules even before you navigate to them.

You can use the following RouterModule configuration to make that work:

RouterModule.forRoot(appRoutes, {
    preloadingStrategy: PreloadAllModules
})

You can refer to the official documentation for more information.

1

solved how to make angular 4/6 faster in loading?