get-image is a simple module that creates a preloaded <img>
for a given src.
$ npm install get-image
var image = require('get-image')
image('./image.jpg', function(error, img) {
document.body.appendChild(img)
})
get-image is a simple module that creates a preloaded <img>
for a given src.
$ npm install get-image
var image = require('get-image')
image('./image.jpg', function(error, img) {
document.body.appendChild(img)
})