preload
Version:
Load images, scripts and CSS with XHR progress events where supported
20 lines (12 loc) • 741 B
Markdown
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
[](https://github.com/rgrove/lazyload) if you're looking for
a lightweight solution.
[](https://nodei.co/npm/preload)
Work in progress.
MIT. See [LICENSE.md](http://github.com/hughsk/preload/blob/master/LICENSE.md) for details.