Skip to content

Commit

Permalink
1.6.6
Browse files Browse the repository at this point in the history
- correctly escape background images (thx @pburke)
- use '.on("load", ...)' instead of '.load(...)' (thx @Pentie)
- 'getItems' now return only not completely loaded elements left (thx @zspitzer)
- reformat the whole code
  • Loading branch information
dkern committed Mar 22, 2016
1 parent 6d2acdb commit a3bcef2
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 96 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ First of all, you will need a copy of [jQuery](http://jquery.com) to use Lazy su
Lazy is available over [cdnjs](http://cdnjs.com) and [jsDelivr](http://jsdelivr.com) CDN and can directly included to every page.
```HTML
<!-- cdnjs -->
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.6.5/jquery.lazy.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.6.6/jquery.lazy.min.js"></script>

<!-- jsDeliver -->
<script type="text/javascript" src="//cdn.jsdelivr.net/jquery.lazy/1.6.5/jquery.lazy.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/jquery.lazy/1.6.6/jquery.lazy.min.js"></script>
```

#### Self-Hosted
Expand Down Expand Up @@ -183,6 +183,7 @@ retinaAttribute | *string* | *data-retina* | Name of the image tag attribute,
loaderAttribute | *string* | *data-loader* | Name or the element attribute, where the identifier of the customer loader is sored.
removeAttribute | *boolean* | *true* | Determine if the attribute should be removed from the element after loading.
handledName | *string* | *handled* | Name of the element tag data attribute, to determine if element is already handled.
loadedName | *string* | *loaded* | Name of the element tag data attribute, to determine if element is already loaded.
**effect** | | |
effect | *string* | *show* | Function name of the effect you want to use to show the loaded images, like `show` or `fadein`.
effectTime | *integer* | *0* | Time in milliseconds the effect should use to view the image.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jquery-lazy",
"description": "Lazy is a fast, feature-rich and lightweight delayed content loading plugin for jQuery. It's designed to speed up page loading times and decrease traffic to your users by only loading the content in view. You can use Lazy in all vertical and horizontal scroll ways. It supports images in 'img' tags and backgrounds, supplied with css like 'background-image', by default or any other content by custom loaders. On images Lazy can set an default image or a placeholder while loading and supports retina displays as well.",
"version": "1.6.5",
"version": "1.6.6",
"main": "jquery.lazy.min.js",
"license": [
"MIT",
Expand Down
Loading

0 comments on commit a3bcef2

Please sign in to comment.