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

https://github.com/yefremov/jquery-preload

Tiny image preloader using deferred's promise object
https://github.com/yefremov/jquery-preload

javascript jquery jquery-plugin jquery-preload umd

Last synced: 3 months ago
JSON representation

Tiny image preloader using deferred's promise object

Awesome Lists containing this project

README

          

# jQuery Preload Plugin

Tiny image preloader using deferred's promise object.

Plugin has AMD (Asynchronous Module Definition) support.

## Usage

```js
// Preload image sources in figure element
$( 'figure' ).preload();

// Preload images from array
$.preload([ 'www.example.com/image.jpg', 'www.example.com/picture.png' ]);
```

## License

Copyright (c) 2013 Anton Yefremov
Free to use and abuse under the MIT license.
[http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT)