queueup.js is a promise-based JavaScript asset loader.
queueup().load('myimage.jpg').then(function (image) {
document.body.appendChild(image);
});
- Node, browserify and webpack users can
npm install queueup
- Bower users can
bower install queueup
- Or just grab the script from the "standalone" directory in the repo