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
- Host: GitHub
- URL: https://github.com/nulldef/blazy.js
- Owner: nulldef
- License: gpl-3.0
- Created: 2015-05-03T22:34:40.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-15T07:22:47.000Z (almost 9 years ago)
- Last Synced: 2025-02-08T14:43:04.535Z (about 1 year ago)
- Language: JavaScript
- Size: 296 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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