1×
Become a member
to unlock all features
Autoplay

    Avoid delays for lazy modules by applying a preloading strategy with the Angular router

    angularAngular
    ~7.0.0

    Lazy loading your Angular modules has some substantial performance benefits at application startup. However, when the user then activates a lazy loaded route, there’s the cost of having to wait for that Angular module to be fetched and fully loaded. To mitigate this issue, the Angular router gives us the possibility to preload a lazy loaded route at runtime.