Skip to content

Commit

Permalink
ver. 0.8.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dryabov committed Jan 6, 2014
1 parent 2766c0a commit 8699063
Show file tree
Hide file tree
Showing 26 changed files with 64 additions and 45 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -786,6 +786,8 @@ function addLazyLoading($html) {
## Version History
- [**0.8.9**](https://github.com/ressio/lazy-load-xt/tree/0.8.9) (06.01.2014): `checkDuplicates` option, fix srcset
addon, speed up work with jQuery
- [**0.8.8**](https://github.com/ressio/lazy-load-xt/tree/0.8.8) (26.12.2013): Fix sharing $el.lazyLoadXT object,
support $(window).lazyLoadXT({...}) call with overrides parameter
- [**0.8.7**](https://github.com/ressio/lazy-load-xt/tree/0.8.7) (26.12.2013): New "picture" addon, feature to pass
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "lazyloadxt",
"description": "Lazy Load XT is mobile-oriented, fast and extensible jQuery plugin for lazy loading of images, videos and other media with built-in support of jQueryMobile framework. It improves performance of website by loading visible media elements only, and elements below the fold are loaded after page scroll. The plugin has many options, supports callbacks and special lazy events, that allows to have different loading effects (e.g. fade in and spinner effects). Examples of plugin and its addons include ajax, background images, infinite scroll, horizontal scroll, iframe-based widgets (YouTube, Vimeo, Google Maps Engine Lite, Facebook recommend button, Google+ profile), html5 video, responsive images with retina support (srcset and picture polyfills), social widgets (embedded tweet, Twitter share button, Google Plus badge and share button, Facebook like and recommend buttons, Facebook post comments), load all images before print, etc. Tested in IE 6-11, Chrome 1-31, Firefox 1.5-27.0, Safari 3-7, Opera 10.6-18.0, iOS 5-7, Android 2.3-4.4, and WP8. Requires jQuery 1.7+ or Zepto 1.0+.",
"version": "0.8.8",
"version": "0.8.9",
"main": ["dist/jquery.lazyloadxt.js", "dist/jquery.lazyloadxt.extra.js"],
"authors": ["RESS.io"],
"homepage": "http://ressio.github.io/lazy-load-xt",
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.lazyloadxt.autoload.js
@@ -1,6 +1,6 @@
/*! Lazy Load XT v0.8.8 2013-12-26
/*! Lazy Load XT v0.8.9 2014-01-06
* http://ressio.github.io/lazy-load-xt
* (C) 2013 RESS.io
* (C) 2014 RESS.io
* Licensed under MIT */

(function ($) {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.lazyloadxt.autoload.min.js

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

4 changes: 2 additions & 2 deletions dist/jquery.lazyloadxt.bg.js
@@ -1,6 +1,6 @@
/*! Lazy Load XT v0.8.8 2013-12-26
/*! Lazy Load XT v0.8.9 2014-01-06
* http://ressio.github.io/lazy-load-xt
* (C) 2013 RESS.io
* (C) 2014 RESS.io
* Licensed under MIT */

(function ($) {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.lazyloadxt.bg.min.js

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

16 changes: 11 additions & 5 deletions dist/jquery.lazyloadxt.extra.js
@@ -1,6 +1,6 @@
/*! Lazy Load XT v0.8.8 2013-12-26
/*! Lazy Load XT v0.8.9 2014-01-06
* http://ressio.github.io/lazy-load-xt
* (C) 2013 RESS.io
* (C) 2014 RESS.io
* Licensed under MIT */

(function ($, window, document, undefined) {
Expand Down Expand Up @@ -32,6 +32,9 @@
viewportBottom,
viewportLeft,
viewportRight,
$data = $.data || function (el, name) {
return $(el).data(name);
},
topLazy = 0,
/*
waitingMode=0 : no setTimeout
Expand All @@ -45,13 +48,16 @@
/**
* Add new elements to lazy-load list:
* $(elements).lazyLoadXT() or $(window).lazyLoadXT()
*
* @param {object} [overrides] loading of all elements
*/
$.fn.lazyLoadXT = function (overrides) {
overrides = overrides || {};

var elementOptionsOverrides = {},
blankImage = overrides.blankImage || options.blankImage,
classNojs = overrides.classNojs || options.classNojs,
checkDuplicates = overrides.checkDuplicates || true,
prop;

for (prop in elementOptions) {
Expand All @@ -62,13 +68,13 @@
if (this === window) {
$(options.selector).lazyLoadXT(overrides);
} else {
var $el = $(this);

// prevent duplicates
if ($el.data(dataLazied)) {
if (checkDuplicates && $data(this, dataLazied)) {
return;
}

var $el = $(this);

$el
.data(dataLazied, 1)
.removeClass(classNojs);
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.lazyloadxt.extra.min.js

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

16 changes: 11 additions & 5 deletions dist/jquery.lazyloadxt.js
@@ -1,6 +1,6 @@
/*! Lazy Load XT v0.8.8 2013-12-26
/*! Lazy Load XT v0.8.9 2014-01-06
* http://ressio.github.io/lazy-load-xt
* (C) 2013 RESS.io
* (C) 2014 RESS.io
* Licensed under MIT */

(function ($, window, document, undefined) {
Expand Down Expand Up @@ -32,6 +32,9 @@
viewportBottom,
viewportLeft,
viewportRight,
$data = $.data || function (el, name) {
return $(el).data(name);
},
topLazy = 0,
/*
waitingMode=0 : no setTimeout
Expand All @@ -45,13 +48,16 @@
/**
* Add new elements to lazy-load list:
* $(elements).lazyLoadXT() or $(window).lazyLoadXT()
*
* @param {object} [overrides] loading of all elements
*/
$.fn.lazyLoadXT = function (overrides) {
overrides = overrides || {};

var elementOptionsOverrides = {},
blankImage = overrides.blankImage || options.blankImage,
classNojs = overrides.classNojs || options.classNojs,
checkDuplicates = overrides.checkDuplicates || true,
prop;

for (prop in elementOptions) {
Expand All @@ -62,13 +68,13 @@
if (this === window) {
$(options.selector).lazyLoadXT(overrides);
} else {
var $el = $(this);

// prevent duplicates
if ($el.data(dataLazied)) {
if (checkDuplicates && $data(this, dataLazied)) {
return;
}

var $el = $(this);

$el
.data(dataLazied, 1)
.removeClass(classNojs);
Expand Down
4 changes: 2 additions & 2 deletions dist/jquery.lazyloadxt.min.js

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

4 changes: 2 additions & 2 deletions dist/jquery.lazyloadxt.picture.js
@@ -1,6 +1,6 @@
/*! Lazy Load XT v0.8.8 2013-12-26
/*! Lazy Load XT v0.8.9 2014-01-06
* http://ressio.github.io/lazy-load-xt
* (C) 2013 RESS.io
* (C) 2014 RESS.io
* Licensed under MIT */

(function ($, window, document) {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.lazyloadxt.picture.min.js

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

4 changes: 2 additions & 2 deletions dist/jquery.lazyloadxt.print.js
@@ -1,6 +1,6 @@
/*! Lazy Load XT v0.8.8 2013-12-26
/*! Lazy Load XT v0.8.9 2014-01-06
* http://ressio.github.io/lazy-load-xt
* (C) 2013 RESS.io
* (C) 2014 RESS.io
* Licensed under MIT */

(function ($, window) {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.lazyloadxt.print.min.js

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

4 changes: 2 additions & 2 deletions dist/jquery.lazyloadxt.script.js
@@ -1,6 +1,6 @@
/*! Lazy Load XT v0.8.8 2013-12-26
/*! Lazy Load XT v0.8.9 2014-01-06
* http://ressio.github.io/lazy-load-xt
* (C) 2013 RESS.io
* (C) 2014 RESS.io
* Licensed under MIT */

(function ($, window, document) {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.lazyloadxt.script.min.js

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

4 changes: 2 additions & 2 deletions dist/jquery.lazyloadxt.simple.js
@@ -1,6 +1,6 @@
/*! Lazy Load XT v0.8.8 2013-12-26
/*! Lazy Load XT v0.8.9 2014-01-06
* http://ressio.github.io/lazy-load-xt
* (C) 2013 RESS.io
* (C) 2014 RESS.io
* Licensed under MIT */

(function ($, window, document) {
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.lazyloadxt.simple.min.js

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

4 changes: 2 additions & 2 deletions dist/jquery.lazyloadxt.srcset.js
@@ -1,6 +1,6 @@
/*! Lazy Load XT v0.8.9-alpha 2013-12-28
/*! Lazy Load XT v0.8.9 2014-01-06
* http://ressio.github.io/lazy-load-xt
* (C) 2013 RESS.io
* (C) 2014 RESS.io
* Licensed under MIT */

(function ($, window, document, undefined) {
Expand Down

0 comments on commit 8699063

Please sign in to comment.