1.0.0 • Published 9 years ago

image-preloadr v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

image-preloadr

npm version

preloads an array of images to the dom at the bottom of the body element

var preload = require('image-preloadr');

// preload your images...
preload([
  'public/img/img1.png',
  'public/img/img2.png'
  ]
)

Running Tests server side

modify test.js for any tests

npm install
npm test

Running Tests client side

modify test.js for any tests

npm install

make sure you have webpack installed globally

npm install webpack -g

compile test.js to a bundle with webpack

webpack ./test/test.js ./test/test-bundle.js

open test.html to view the tests in the browser

License

MIT