image-preloadr

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i image-preloadr

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • svnm