preload-images

build preload images

Showing:

Popularity

Downloads/wk

0

GitHub Stars

3

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

6

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

preload-images

NPM Version NPM Downloads MIT License Dependency Status

NPM

NPM

build preload images for events

installation

[sudo] npm install -g preload-images

usage

In your project folder, preload.

This will change your html files to:

<img src="some.jpg" data-preload> to <img src="some-small.jpg" data-preload="some.jpg" data-preload-origin="some.jpg">

And add a script <script data-preload=""> to the bottom of html body.

advanced usage

show helps

preload -h

or

preload --help

set image width

default width 160

preload -w 160

or

preload --width 160

set image quality

default quality 10

preload -q 10

or

preload --quality 10

specify html file

preload -f ./index.html

or

preload --file ./index.html

debug mode

preload -d

or

preload --debug

show version

preload -v

or

preload --version

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial