Skip to content

0sylvanas/local-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

preload-images

NPM Version NPM Downloads MIT License Dependency Status

NPM

build preload images for events

installation

[sudo] npm install -g preload-images

usage

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

advanced usage

show helps

preload -h

or

preload --help

set image width

preload -w 160

or

preload --width 160

set image quality

preload -q 10

or

preload --quality 10

debug mode

preload -d

or

preload --debug

show version

preload -v

or

preload --version

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published