Skip to main content

Loading modules

  • Loading modules

  • Eager Loading , Pre Loading , Lazy Loading

    • Eager loading means loading modules before application starts - suitable for small size apps.
    • Preloading means loading modules in background just after application starts - suitable for medium and large apps as well
    • Lazy loading means loading modules on demand (like when user visits particular route then only that component related code will be loaded) - suitable for Large enterprise apps
    • In lazy loading and preloading, modules are loaded asynchronously.