Skip to content

Commit

Permalink
Updated README for v.1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rouralberto committed Oct 31, 2016
1 parent 627ee45 commit efe3337
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# perezoso.js (v1.0.4)
# perezoso.js (v1.0.5)

Perezoso is a lightweight javascript plugin to lazy load responsive images forked from [fhopeman/justlazy](https://github.com/fhopeman/justlazy).

Expand All @@ -7,7 +7,6 @@ Most of the existing javascript plugins using extensive dependencies or supporti
## Features

- 100% performance with plain javascript (no jQuery).
- 100% valid HTML (no empty src tag).
- Simplicity and lightness (just lazy loading of images, no special cases).
- Heavily tested on various devices, browsers and OS versions.

Expand Down Expand Up @@ -81,3 +80,15 @@ Perezoso.registerLazyLoadByClass('load-if-visible', {
threshold: 200
});
```

##### onCreateCallback
The `onCreateCallback` option is optional. When the new image is created, the function defined here is called.

Example:
```
Perezoso.registerLazyLoadByClass('load-if-visible', {
onCreateCallback: function() {
console.log('image loaded!');
}
});
```

0 comments on commit efe3337

Please sign in to comment.