prelude.js
prelude.js is a simple and flexible preloader works with CommonJS, AMD and <script>
.
Requirements
- Nothing
How to Use
<script src="/path/to/prelude.js"></script><script> document;</script>
Prelude also supports CommonJS, AMD -style including options. This is more modern way:
domready = require 'domready'Prelude = require 'prelude' domready -> # preload assets loader = loaderadd from: 'http://cdn.example.com/Go To The Hell(ie remix).mp3' loaderon 'end' # assets ready track = resultget 'Go To The Hell(ie remix)' trackplay
Configurations
Events
end
Contributing
Pull requests are welcome!
Credits
Maintained by Yasuaki Uechi uetchy@randompaper.co Licensed under MIT License