Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including oclazyload with all npm packages installed. Try it out:

var oclazyload = require("oclazyload")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

oclazyload v1.1.0

Load modules on demand (lazy load) with angularJS

ocLazyLoad Build Status

Lazy load modules & components in AngularJS


Find all the documentation (and more) on https://oclazyload.readme.io

ocLazyLoad

Key features

  • Dependencies are automatically loaded
  • Debugger friendly (no eval code)
  • The ability to mix normal boot and load on demand
  • Load via the service or the directive
  • Use the embedded async loader or use your own (requireJS, ...)
  • Load js (angular or not) / css / templates files
  • Compatible with AngularJS 1.2.x/1.3.x/1.4.x/1.5.x/1.6.x

Looking for help

I'm looking for contributors to help me maintain the code (I'm gonna switch to Angular 2 soon, and I won't be much more invested in Angular 1 & ocLazyLoad). If you're interested, send me a tweet @OCombe or an email: olivier.combe@gmail.com !

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free