Skip to content

Commit

Permalink
1.7.0
Browse files Browse the repository at this point in the history
New Features:
- Lazy can now have it's own loader plugins
- support for 'srcset' and 'sizes' on '<img>' tags
- 'imagebase' attribute can now be set for single elements
- Lazy now works even with Zepto framework instead of jQuery

New Plugins:
- AJAX
- Audio / Video
- iFrame
- NOOP
- Script
- YouTube

Code Changes:
- renamed internal 'configuration' function to 'config' to be more consistent
- switch internally from 'config()' function to 'config' object
- moved instance 'name' from prototype to configuration option
- switched from an object property to variable for namespace parameter
- refactored code for better variable usage
- better 'for' loop usage everywhere
- smallest if-conditions whenever possible
- plugins and loaders are now prioritized before image loading
- fixed bug on multiple instances destroying each others events
- fixed usage of 'onFinishedAll' with custom loaders or plugin only
- fixed double 'load' or 'error' event on plugins and custom loaders

Minimization Changes:
- added function '_getElementTagName' for reused task
- created some dictionary strings for often used words
- complete refactoring for much smaller minified version

Description Changes:
- fixed some typos and JSDoc's
- added more inspection rules for IntelliJ IDEA IDE's
- added JSDoc for constructor
  • Loading branch information
dkern committed Jun 3, 2016
1 parent 6094dfd commit 5e62522
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ Some examples below:
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.7/jquery.lazy.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.lazy/1.7.0/jquery.lazy.min.js"></script>

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

#### Self-Hosted
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 and Zepto. 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. On those elements Lazy can set an default image or a placeholder while loading and supports retina displays as well. But Lazy is even able to load any other content you want by plugins and custom loaders.",
"version": "1.6.7",
"version": "1.7.0",
"main": "jquery.lazy.min.js",
"license": [
"MIT",
Expand Down
2 changes: 1 addition & 1 deletion jquery.lazy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery & Zepto Lazy - v1.6.7
* jQuery & Zepto Lazy - v1.7.0
* http://jquery.eisbehr.de/lazy/
*
* Copyright 2012 - 2016, Daniel 'Eisbehr' Kern
Expand Down
2 changes: 1 addition & 1 deletion jquery.lazy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jquery-lazy",
"title": "jQuery & Zepto Lazy - Delayed Content, Image and Background Loader",
"version": "1.6.7",
"version": "1.7.0",
"description": "Lazy is a fast, feature-rich and lightweight delayed content loading plugin for jQuery and Zepto. It's designed to speed up page loading times and decrease traffic to your users by only loading the content in view.",
"homepage": "http://jquery.eisbehr.de/lazy/",
"bugs": "http://github.com/eisbehr-/jquery.lazy/issues",
Expand Down

0 comments on commit 5e62522

Please sign in to comment.