This project is now obsolete, since imagine is obsolete too
npm install quark-imagine
bower install quark-imagine
// Load one image
$('.myimage').load(function() {
// loaded!
});
// Handle errors
$('.myimage').load(function() {
// loaded!
}, function() {
// boom!
});
// Load several images
$$('.images').load(function() {
// Please note that the callback won't be triggered
// when ALL images are loaded but for EACH loaded image.
// To run your callback only when all images have been loaded
// use imagine directly.
});
Published under the MIT license.