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

https://github.com/nulldef/blazy.js

Lazy-load javascript lightweight lib
https://github.com/nulldef/blazy.js

Last synced: 12 days ago
JSON representation

Lazy-load javascript lightweight lib

Awesome Lists containing this project

README

          

# blazy.js
Lazy-load javascript lightweight lib

### Install
```bower install blazy.js --save```

Include library in your page:

```html

```

And init this one:

```javascript
Blazy.start()
```

# Options object
```javascript
{
selectorAttr: 'blazy', // selector watching for
readyClass: 'blazy-ready' // ready class when image is loaded & shown
}
```

# Example
```html

```
will load image by url from `blazy` attribute when image will
visible in window and hide image when image is not visible