Lazy loading

Download angularjs eBook


  1. If your lazy loaded dependencies require other lazy loaded dependencies make sure you load them in the right order!
angular.module('lazy', [
  files: [
  'path/to/lazily/loaded/dependency2.js', //<--- requires lazily loaded dependency1
  serie: true //Sequential load instead of parallel

Related Examples


111 Contributors: 1
Monday, September 12, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial:

Download eBook