npm install prelude-jsprelude.js is a simple and flexible preloader works with CommonJS, AMD and .
* Nothing
``js`
Prelude also supports CommonJS, AMD -style including options.
This is more modern way:
`coffee
domready = require 'domready'
Prelude = require 'prelude'
domready ->
# preload assets
loader = new Prelude()
loader.add from: 'http://cdn.example.com/Go To The Hell(ie remix).mp3'
loader.on 'end', (result) ->
# assets ready
track = result.get 'Go To The Hell(ie remix)'
track.play()
``
Pull requests are welcome!
Maintained by Yasuaki Uechi
Licensed under MIT License