From b781008b9fbbe10119ba8cd3ded4b794c4654501 Mon Sep 17 00:00:00 2001 From: eisbehr- Date: Tue, 21 Jun 2016 09:25:59 +0200 Subject: [PATCH] 1.7.1 - this update will bring all plugins to cdnjs and jsDeliver CDN - some description changes --- README.md | 12 +++++++----- bower.json | 2 +- jquery.lazy.js | 7 ++++--- jquery.lazy.min.js | 2 +- jquery.lazy.plugins.js | 12 ++++++------ jquery.lazy.plugins.min.js | 2 +- package.json | 2 +- plugins/jquery.lazy.ajax.js | 2 +- plugins/jquery.lazy.ajax.min.js | 2 +- plugins/jquery.lazy.av.js | 2 +- plugins/jquery.lazy.av.min.js | 2 +- plugins/jquery.lazy.iframe.js | 2 +- plugins/jquery.lazy.iframe.min.js | 2 +- plugins/jquery.lazy.noop.js | 2 +- plugins/jquery.lazy.noop.min.js | 2 +- plugins/jquery.lazy.script.js | 2 +- plugins/jquery.lazy.script.min.js | 2 +- plugins/jquery.lazy.youtube.js | 2 +- plugins/jquery.lazy.youtube.min.js | 2 +- 19 files changed, 33 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index df84044..0086a0e 100644 --- a/README.md +++ b/README.md @@ -54,13 +54,15 @@ If you get this you can install Lazy by different ways. Some examples below: #### CDN -Lazy is available over [cdnjs](http://cdnjs.com) and [jsDelivr](http://jsdelivr.com) CDN and can directly included to every page. +Lazy and all plugins are available over [cdnjs](http://cdnjs.com) and [jsDelivr](http://jsdelivr.com) CDN and can directly included to every page. ```HTML - - - - + + + + + + ``` #### Self-Hosted diff --git a/bower.json b/bower.json index d749c82..557a331 100644 --- a/bower.json +++ b/bower.json @@ -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.7.0", + "version": "1.7.1", "main": "jquery.lazy.min.js", "license": [ "MIT", diff --git a/jquery.lazy.js b/jquery.lazy.js index b1b18a8..1935d5c 100644 --- a/jquery.lazy.js +++ b/jquery.lazy.js @@ -1,5 +1,5 @@ /*! - * jQuery & Zepto Lazy - v1.7.0 + * jQuery & Zepto Lazy - v1.7.1 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern @@ -14,14 +14,15 @@ ;(function(window, undefined) { "use strict"; + // noinspection JSUnresolvedVariable /** - * library instance - here and not in construct to be shorter in minization + * library instance - here and not in construct to be shorter in minimization * @return void */ var $ = window.jQuery || window.Zepto, /** - * unique plugin instance id + * unique plugin instance id counter * @type {number} */ lazyInstanceId = 0; diff --git a/jquery.lazy.min.js b/jquery.lazy.min.js index 6b7756a..ef3d712 100644 --- a/jquery.lazy.min.js +++ b/jquery.lazy.min.js @@ -1,2 +1,2 @@ -/*! jQuery Lazy 1.7.0 - MIT&GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ +/*! jQuery Lazy 1.7.1 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ !function(t,e){"use strict";function r(r,a,i,o,l){function u(){B=t.devicePixelRatio>1,c(i),a.delay>=0&&setTimeout(function(){f(!0)},a.delay),(a.delay<0||a.combined)&&(o.e=g(a.throttle,function(t){"resize"===t.type&&(z=w=-1),f(t.all)}),o.a=function(t){c(t),i.push.apply(i,t)},o.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},f(),n(a.appendScroll).on("scroll."+l+" resize."+l,o.e))}function c(t){var i=a.defaultImage,o=a.placeholder,l=a.imageBase,u=a.srcsetAttribute,c=a.loaderAttribute,f=a._f||{};t=n(t).filter(function(){var t=n(this),r=h(this);return!t.data(a.handledName)&&(t.attr(a.attribute)||t.attr(u)||t.attr(c)||f[r]!=e)}).data("plugin_"+a.name,r);for(var s=0,d=t.length;d>s;s++){var A=n(t[s]),m=h(t[s]),g=A.attr(a.imageBaseAttribute)||l;m==I&&g&&A.attr(u)&&A.attr(u,b(A.attr(u),g)),f[m]==e||A.attr(c)||A.attr(c,f[m]),m==I&&i&&!A.attr(N)?A.attr(N,i):m==I||!o||A.css(C)&&"none"!=A.css(C)||A.css(C,"url('"+o+"')")}}function f(t){if(!i.length)return void(a.autoDestroy&&r.destroy());for(var e=!1,o=a.imageBase||"",l=a.srcsetAttribute,u=a.handledName,c=0,f=i.length;f>c;c++)(function(r){if(t||d(r)){var i=n(r),c=h(r),f=i.attr(a.attribute),A=i.attr(a.imageBaseAttribute)||o,m=i.attr(a.loaderAttribute);i.data(u)||a.visibleOnly&&!i.is(":visible")||!((f||i.attr(l))&&(c==I&&(A+f!=i.attr(N)||i.attr(l)!=i.attr(E))||c!=I&&A+f!=i.css(C))||m)||(e=!0,i.data(u,!0),s(i,c,A,m))}})(i[c]);e&&(i=n(i).filter(function(){return!n(this).data(u)}))}function s(t,e,r,i){++y;var o=function(){p("onError",t),v(),o=n.noop};p("beforeLoad",t);var l=a.attribute,u=a.srcsetAttribute,c=a.sizesAttribute,f=a.retinaAttribute,s=a.removeAttribute,d=a.loadedName,A=t.attr(f);if(i){var m=function(){s&&t.removeAttr(a.loaderAttribute),t.data(d,!0),p(L,t),setTimeout(v,1),m=n.noop};t.off(D).one(D,o).one(T,m),p(i,t,function(e){e?(t.off(T),m()):(t.off(D),o())})||t.error()}else{var h=n(new Image);h.one(D,o).one(T,function(){t.hide(),e==I?t.attr(F,h.attr(F)).attr(E,h.attr(E)).attr(N,h.attr(N)):t.css(C,"url('"+h.attr(N)+"')"),t[a.effect](a.effectTime),s&&(t.removeAttr(l+" "+u+" "+f+" "+a.imageBaseAttribute),c!==F&&t.removeAttr(c)),t.data(d,!0),p(L,t),h.remove(),v()});var b=(B&&A?A:t.attr(l))||"";h.attr(F,t.attr(c)).attr(E,t.attr(u)).attr(N,b?r+b:null),h.complete&&h.load()}}function d(t){var e=t.getBoundingClientRect(),r=a.scrollDirection,n=a.threshold,i=m()+n>e.top&&-ne.left&&-n=0?z:z=n(t).width()}function m(){return w>=0?w:w=n(t).height()}function h(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;n>a;a++)t+=e+r[a].trim()+(a!==n-1?",":"")}return t}function g(t,e){var n,i=0;return function(o,l){function u(){i=+new Date,e.call(r,o)}var c=+new Date-i;n&&clearTimeout(n),c>t||!a.enableThrottle||l?u():n=setTimeout(u,t-c)}}function v(){--y,i.length||y||p("onFinishedAll")}function p(t,e,n){return(t=a[t])?(t.apply(r,[].slice.call(arguments,1)),!0):!1}var y=0,z=-1,w=-1,B=!1,L="afterLoad",T="load",D="error",I="img",N="src",E="srcset",F="sizes",C="background-image";"event"==a.bind?u():n(t).on(T+"."+l,u)}function a(a,o){var l=this,u=n.extend({},l.config,o),c={},f=u.name+"-"+ ++i;return l.config=function(t,r){return r===e?u[t]:(u[t]=r,l)},l.addItems=function(t){return c.a&&c.a("string"===n.type(t)?n(t):t),l},l.getItems=function(){return c.g?c.g():{}},l.update=function(t){return c.e&&c.e({},!t),l},l.loadAll=function(){return c.e&&c.e({all:!0},!0),l},l.destroy=function(){return n(u.appendScroll).off("."+f,c.e),n(t).off("."+f),c={},e},r(l,u,a,c,f),u.chainable?a:l}var n=t.jQuery||t.Zepto,i=0;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,l=o._f||(o._f={}),u=0,c=t.length;c>u;u++)(o[t[u]]===e||n.isFunction(o[t[u]]))&&(o[t[u]]=i);for(var f=0,s=r.length;s>f;f++)l[r[f]]=t[0]}},a.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,appendScroll:t,scrollDirection:"both",defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",delay:-1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250}}(window); \ No newline at end of file diff --git a/jquery.lazy.plugins.js b/jquery.lazy.plugins.js index 5e913cf..affc05e 100644 --- a/jquery.lazy.plugins.js +++ b/jquery.lazy.plugins.js @@ -1,5 +1,5 @@ /*! - * jQuery & Zepto Lazy - AJAX Plugin - v1.1 + * jQuery & Zepto Lazy - AJAX Plugin - v1.2 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern @@ -73,7 +73,7 @@ })(window.jQuery || window.Zepto); /*! - * jQuery & Zepto Lazy - AV Plugin - v1.2 + * jQuery & Zepto Lazy - AV Plugin - v1.3 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern @@ -189,7 +189,7 @@ })(window.jQuery || window.Zepto); /*! - * jQuery & Zepto Lazy - iFrame Plugin - v1.2 + * jQuery & Zepto Lazy - iFrame Plugin - v1.3 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern @@ -269,7 +269,7 @@ })(window.jQuery || window.Zepto); /*! - * jQuery & Zepto Lazy - NOOP Plugin - v1.1 + * jQuery & Zepto Lazy - NOOP Plugin - v1.2 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern @@ -300,7 +300,7 @@ })(window.jQuery || window.Zepto); /*! - * jQuery & Zepto Lazy - Script Plugin - v1.1 + * jQuery & Zepto Lazy - Script Plugin - v1.2 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern @@ -328,7 +328,7 @@ })(window.jQuery || window.Zepto); /*! - * jQuery & Zepto Lazy - YouTube Plugin - v1.1 + * jQuery & Zepto Lazy - YouTube Plugin - v1.2 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern diff --git a/jquery.lazy.plugins.min.js b/jquery.lazy.plugins.min.js index d99b333..e29931f 100644 --- a/jquery.lazy.plugins.min.js +++ b/jquery.lazy.plugins.min.js @@ -1,2 +1,2 @@ -/*! jQuery & Zepto Lazy - All Plugins - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ +/*! jQuery & Zepto Lazy - All Plugins - http://jquery.eisbehr.de/lazy - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ !function(t){function e(e,a,r,o){t.ajax({url:a.attr("data-src"),type:o||"get",dataType:a.attr("data-type")||"html",success:function(t){a.html(t),r(!0),e.config("removeAttribute")&&a.removeAttr("data-src data-method data-type")},error:function(){r(!1)}})}t.lazy("ajax",function(t,a){e(this,t,a,t.attr("data-method"))}),t.lazy("get",function(t,a){e(this,t,a,"get")}),t.lazy("post",function(t,a){e(this,t,a,"post")})}(window.jQuery||window.Zepto),function(t){t.lazy(["av","audio","video"],["audio","video"],function(e,a){var r=e[0].tagName.toLowerCase();if("audio"==r||"video"==r){var o="data-src",n=e.find(o),i=e.find("data-track"),c=0,u=function(){++c==n.length&&a(!1)},s=function(){var e=t(this),a=e[0].tagName.toLowerCase(),r=e.prop("attributes"),n=t(a==o?"":"");a==o&&n.one("error",u),t.each(r,function(t,e){n.attr(e.name,e.value)}),e.replaceWith(n)};e.one("loadedmetadata",function(){a(!0)}).off("load error").attr("poster",e.attr("data-poster")),n.length?n.each(s):e.attr(o)?(t.each(e.attr(o).split(","),function(a,r){var o=r.split("|");e.append(t("").one("error",u).attr({src:o[0].trim(),type:o[1].trim()}))}),this.config("removeAttribute")&&e.removeAttr(o)):a(!1),i.length&&i.each(s)}else a(!1)})}(window.jQuery||window.Zepto),function(t){t.lazy(["frame","iframe"],"iframe",function(e,a){var r=this;if("iframe"==e[0].tagName.toLowerCase()){var o="data-src",n="data-error-detect",i=e.attr(n);"true"!=i&&"1"!=i?(e.attr("src",e.attr(o)),r.config("removeAttribute")&&e.removeAttr(o+" "+n)):t.ajax({url:e.attr(o),dataType:"html",success:function(t){e.html(t).attr("src",e.attr(o)),r.config("removeAttribute")&&e.removeAttr(o+" "+n)},error:function(){a(!1)}})}else a(!1)})}(window.jQuery||window.Zepto),function(t){t.lazy("noop",function(){}),t.lazy("noop-success",function(t,e){e(!0)}),t.lazy("noop-error",function(t,e){e(!1)})}(window.jQuery||window.Zepto),function(t){t.lazy(["js","javascript","script"],"script",function(t,e){"script"==t[0].tagName.toLowerCase()?(t.attr("src",t.attr("data-src")),this.config("removeAttribute")&&t.removeAttr("data-src")):e(!1)})}(window.jQuery||window.Zepto),function(t){t.lazy(["yt","youtube"],function(t,e){"iframe"==t[0].tagName.toLowerCase()?(t.attr("src","https://www.youtube.com/embed/"+t.attr("data-src")+"?rel=0&showinfo=0"),this.config("removeAttribute")&&t.removeAttr("data-src")):e(!0)})}(window.jQuery||window.Zepto); \ No newline at end of file diff --git a/package.json b/package.json index c0b3278..c534fde 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jquery-lazy", "title": "jQuery & Zepto Lazy - Delayed Content, Image and Background Loader", - "version": "1.7.0", + "version": "1.7.1", "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", diff --git a/plugins/jquery.lazy.ajax.js b/plugins/jquery.lazy.ajax.js index 8dbdd92..55bb3d4 100644 --- a/plugins/jquery.lazy.ajax.js +++ b/plugins/jquery.lazy.ajax.js @@ -1,5 +1,5 @@ /*! - * jQuery & Zepto Lazy - AJAX Plugin - v1.1 + * jQuery & Zepto Lazy - AJAX Plugin - v1.2 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern diff --git a/plugins/jquery.lazy.ajax.min.js b/plugins/jquery.lazy.ajax.min.js index 25bacab..fa2fd82 100644 --- a/plugins/jquery.lazy.ajax.min.js +++ b/plugins/jquery.lazy.ajax.min.js @@ -1,2 +1,2 @@ -/*! jQuery & Zepto Lazy - AJAX Plugin - v1.1 - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ +/*! jQuery & Zepto Lazy - AJAX Plugin v1.2 - http://jquery.eisbehr.de/lazy - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ !function(t){function a(a,e,o,n){t.ajax({url:e.attr("data-src"),type:n||"get",dataType:e.attr("data-type")||"html",success:function(t){e.html(t),o(!0),a.config("removeAttribute")&&e.removeAttr("data-src data-method data-type")},error:function(){o(!1)}})}t.lazy("ajax",function(t,e){a(this,t,e,t.attr("data-method"))}),t.lazy("get",function(t,e){a(this,t,e,"get")}),t.lazy("post",function(t,e){a(this,t,e,"post")})}(window.jQuery||window.Zepto); \ No newline at end of file diff --git a/plugins/jquery.lazy.av.js b/plugins/jquery.lazy.av.js index a161fec..55f9440 100644 --- a/plugins/jquery.lazy.av.js +++ b/plugins/jquery.lazy.av.js @@ -1,5 +1,5 @@ /*! - * jQuery & Zepto Lazy - AV Plugin - v1.2 + * jQuery & Zepto Lazy - AV Plugin - v1.3 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern diff --git a/plugins/jquery.lazy.av.min.js b/plugins/jquery.lazy.av.min.js index 7af1faf..2b897ae 100644 --- a/plugins/jquery.lazy.av.min.js +++ b/plugins/jquery.lazy.av.min.js @@ -1,2 +1,2 @@ -/*! jQuery & Zepto Lazy - AV Plugin - v1.2 - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ +/*! jQuery & Zepto Lazy - AV Plugin v1.3 - http://jquery.eisbehr.de/lazy - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ !function(t){t.lazy(["av","audio","video"],["audio","video"],function(e,a){var r=e[0].tagName.toLowerCase();if("audio"==r||"video"==r){var o="data-src",i=e.find(o),n=e.find("data-track"),c=0,d=function(){++c==i.length&&a(!1)},u=function(){var e=t(this),a=e[0].tagName.toLowerCase(),r=e.prop("attributes"),i=t(a==o?"":"");a==o&&i.one("error",d),t.each(r,function(t,e){i.attr(e.name,e.value)}),e.replaceWith(i)};e.one("loadedmetadata",function(){a(!0)}).off("load error").attr("poster",e.attr("data-poster")),i.length?i.each(u):e.attr(o)?(t.each(e.attr(o).split(","),function(a,r){var o=r.split("|");e.append(t("").one("error",d).attr({src:o[0].trim(),type:o[1].trim()}))}),this.config("removeAttribute")&&e.removeAttr(o)):a(!1),n.length&&n.each(u)}else a(!1)})}(window.jQuery||window.Zepto); \ No newline at end of file diff --git a/plugins/jquery.lazy.iframe.js b/plugins/jquery.lazy.iframe.js index a32c320..7a872c0 100644 --- a/plugins/jquery.lazy.iframe.js +++ b/plugins/jquery.lazy.iframe.js @@ -1,5 +1,5 @@ /*! - * jQuery & Zepto Lazy - iFrame Plugin - v1.2 + * jQuery & Zepto Lazy - iFrame Plugin - v1.3 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern diff --git a/plugins/jquery.lazy.iframe.min.js b/plugins/jquery.lazy.iframe.min.js index 4d51da9..64691d1 100644 --- a/plugins/jquery.lazy.iframe.min.js +++ b/plugins/jquery.lazy.iframe.min.js @@ -1,2 +1,2 @@ -/*! jQuery & Zepto Lazy - iFrame Plugin - v1.2 - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ +/*! jQuery & Zepto Lazy - iFrame Plugin v1.3 - http://jquery.eisbehr.de/lazy - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ !function(t){t.lazy(["frame","iframe"],"iframe",function(r,e){var a=this;if("iframe"==r[0].tagName.toLowerCase()){var o="data-src",i="data-error-detect",c=r.attr(i);"true"!=c&&"1"!=c?(r.attr("src",r.attr(o)),a.config("removeAttribute")&&r.removeAttr(o+" "+i)):t.ajax({url:r.attr(o),dataType:"html",success:function(t){r.html(t).attr("src",r.attr(o)),a.config("removeAttribute")&&r.removeAttr(o+" "+i)},error:function(){e(!1)}})}else e(!1)})}(window.jQuery||window.Zepto); \ No newline at end of file diff --git a/plugins/jquery.lazy.noop.js b/plugins/jquery.lazy.noop.js index 1ec1bad..0c3c181 100644 --- a/plugins/jquery.lazy.noop.js +++ b/plugins/jquery.lazy.noop.js @@ -1,5 +1,5 @@ /*! - * jQuery & Zepto Lazy - NOOP Plugin - v1.1 + * jQuery & Zepto Lazy - NOOP Plugin - v1.2 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern diff --git a/plugins/jquery.lazy.noop.min.js b/plugins/jquery.lazy.noop.min.js index 5096d30..ae7aef8 100644 --- a/plugins/jquery.lazy.noop.min.js +++ b/plugins/jquery.lazy.noop.min.js @@ -1,2 +1,2 @@ -/*! jQuery & Zepto Lazy - NOOP Plugin - v1.1 - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ +/*! jQuery & Zepto Lazy - NOOP Plugin v1.2 - http://jquery.eisbehr.de/lazy - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ !function(o){o.lazy("noop",function(){}),o.lazy("noop-success",function(o,n){n(!0)}),o.lazy("noop-error",function(o,n){n(!1)})}(window.jQuery||window.Zepto); \ No newline at end of file diff --git a/plugins/jquery.lazy.script.js b/plugins/jquery.lazy.script.js index c139fb2..22fea19 100644 --- a/plugins/jquery.lazy.script.js +++ b/plugins/jquery.lazy.script.js @@ -1,5 +1,5 @@ /*! - * jQuery & Zepto Lazy - Script Plugin - v1.1 + * jQuery & Zepto Lazy - Script Plugin - v1.2 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern diff --git a/plugins/jquery.lazy.script.min.js b/plugins/jquery.lazy.script.min.js index ef91da8..92a2c41 100644 --- a/plugins/jquery.lazy.script.min.js +++ b/plugins/jquery.lazy.script.min.js @@ -1,2 +1,2 @@ -/*! jQuery & Zepto Lazy - Script Plugin - v1.1 - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ +/*! jQuery & Zepto Lazy - Script Plugin v1.2 - http://jquery.eisbehr.de/lazy - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ !function(t){t.lazy(["js","javascript","script"],"script",function(t,r){"script"==t[0].tagName.toLowerCase()?(t.attr("src",t.attr("data-src")),this.config("removeAttribute")&&t.removeAttr("data-src")):r(!1)})}(window.jQuery||window.Zepto); \ No newline at end of file diff --git a/plugins/jquery.lazy.youtube.js b/plugins/jquery.lazy.youtube.js index d4b8ce2..1d26615 100644 --- a/plugins/jquery.lazy.youtube.js +++ b/plugins/jquery.lazy.youtube.js @@ -1,5 +1,5 @@ /*! - * jQuery & Zepto Lazy - YouTube Plugin - v1.1 + * jQuery & Zepto Lazy - YouTube Plugin - v1.2 * http://jquery.eisbehr.de/lazy/ * * Copyright 2012 - 2016, Daniel 'Eisbehr' Kern diff --git a/plugins/jquery.lazy.youtube.min.js b/plugins/jquery.lazy.youtube.min.js index 683a643..a3f9780 100644 --- a/plugins/jquery.lazy.youtube.min.js +++ b/plugins/jquery.lazy.youtube.min.js @@ -1,2 +1,2 @@ -/*! jQuery & Zepto Lazy - YouTube Plugin - v1.1 - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ +/*! jQuery & Zepto Lazy - YouTube Plugin v1.2 - http://jquery.eisbehr.de/lazy - MIT & GPL-2.0 license - Copyright 2012-2016 Daniel 'Eisbehr' Kern */ !function(t){t.lazy(["yt","youtube"],function(t,e){"iframe"==t[0].tagName.toLowerCase()?(t.attr("src","https://www.youtube.com/embed/"+t.attr("data-src")+"?rel=0&showinfo=0"),this.config("removeAttribute")&&t.removeAttr("data-src")):e(!0)})}(window.jQuery||window.Zepto); \ No newline at end of file