Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hughsk/preload

Load images, scripts and CSS with XHR progress events where supported
https://github.com/hughsk/preload

Last synced: 12 days ago
JSON representation

Load images, scripts and CSS with XHR progress events where supported

Awesome Lists containing this project

README

        

# preload [![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #

Load images, scripts and CSS with XHR progress events where supported.

This has been written more for large, script/asset-heavy pages such as games
or WebGL demos where the page is already going to take 5+ seconds to load.
As such, it's not as small as it could be - I'd recommend
[LazyLoad](https://github.com/rgrove/lazyload) if you're looking for
a lightweight solution.

## Usage ##

[![preload](https://nodei.co/npm/preload.png?mini=true)](https://nodei.co/npm/preload)

Work in progress.

## License ##

MIT. See [LICENSE.md](http://github.com/hughsk/preload/blob/master/LICENSE.md) for details.