Creates and loads an image.
$ component install yields/load-image
var image = require('load-image');
var body = document.body;
body.className = 'loading';
image('/foo.jpg', function(err, img){
if (err) throw err;
body.className = '';
body.style.background = 'url(' + img.src + ')';
});
MIT