build preload images for events
[sudo] npm install -g preload-images
In your local folder, > preload
.
This will change html:
<img src="some.jpg" data-preload="">
to <img src="some-small.jpg" data-preload="some.jpg">
and add a script to the bottom of html body
preload -h
or
preload --help
preload -w 160
or
preload --width 160
preload -q 10
or
preload --quality 10
preload -d
or
preload --debug
preload -v
or
preload --version