SlideShare a Scribd company logo
1 of 1
/*
Copyright (c) 2008 Ryan Grove <ryan@wonko.com>. All rights reserved.
Licensed under the BSD License:
http://www.opensource.org/licenses/bsd-license.html
Version: 1.0.4
*/
var LazyLoad=function(){var E=document,D=null,A=[],C;function B(){if(C){return }
var G=navigator.userAgent,F;C={gecko:0,ie:0,webkit:0};F=G.match(/AppleWebKit/
(S*)/);if(F&&F[1])
{C.webkit=parseFloat(F[1])}else{F=G.match(/MSIEs([^;]*)/);if(F&&F[1])
{C.ie=parseFloat(F[1])}else{if((/Gecko/(S*)/).test(G))
{C.gecko=1;F=G.match(/rv:([^s)]*)/);if(F&&F[1])
{C.gecko=parseFloat(F[1])}}}}}return{load:function(K,L,J,I){var
H=E.getElementsByTagName("head")[0],G,F;if(K){K=K.constructor===Array?K:
[K];for(G=0;G<K.length;++G){A.push({url:K[G],callback:G===K.length-1?
L:null,obj:J,scope:I})}}if(D||!(D=A.shift())){return }
B();F=E.createElement("script");F.src=D.url;if(C.ie)
{F.onreadystatechange=function(){if(this.readyState==="loaded"||
this.readyState==="complete"){LazyLoad.requestComplete()}}}else{if(C.gecko||
C.webkit>=420)
{F.onload=LazyLoad.requestComplete;F.onerror=LazyLoad.requestComplete}}H.appendC
hild(F);if(!C.ie&&!C.gecko&&!(C.webkit>=420))
{F=E.createElement("script");F.appendChild(E.createTextNode("LazyLoad.requestCom
plete();"));H.appendChild(F)}},loadOnce:function(N,O,L,P,G){var
H=[],I=E.getElementsByTagName("script"),M,J,K,F;N=N.constructor===Array?N:
[N];for(M=0;M<N.length;++M){K=false;F=N[M];for(J=0;J<I.length;++J)
{if(F===I[J].src){K=true;break}}if(!K){H.push(F)}}if(H.length>0)
{LazyLoad.load(H,O,L,P)}else{if(G){if(L){if(P)
{O.call(L)}else{O.call(window,L)}}else{O.call()}}}},requestComplete:function()
{if(D.callback){if(D.obj){if(D.scope)
{D.callback.call(D.obj)}else{D.callback.call(window,D.obj)}}else{D.callback.call
()}}D=null;if(A.length){LazyLoad.load()}}}}();

More Related Content

What's hot

Kubernetes で実現するインフラ自動構築パイプライン
Kubernetes で実現するインフラ自動構築パイプラインKubernetes で実現するインフラ自動構築パイプライン
Kubernetes で実現するインフラ自動構築パイプラインYusuke Nojima
 
世界のどこかで楽しくRubyでお仕事するために
世界のどこかで楽しくRubyでお仕事するために世界のどこかで楽しくRubyでお仕事するために
世界のどこかで楽しくRubyでお仕事するためにKuniaki Igarashi
 

What's hot (7)

Kubernetes で実現するインフラ自動構築パイプライン
Kubernetes で実現するインフラ自動構築パイプラインKubernetes で実現するインフラ自動構築パイプライン
Kubernetes で実現するインフラ自動構築パイプライン
 
Groovyノススメ
GroovyノススメGroovyノススメ
Groovyノススメ
 
世界のどこかで楽しくRubyでお仕事するために
世界のどこかで楽しくRubyでお仕事するために世界のどこかで楽しくRubyでお仕事するために
世界のどこかで楽しくRubyでお仕事するために
 
Unleashing kotlin's power
Unleashing kotlin's powerUnleashing kotlin's power
Unleashing kotlin's power
 
JavaScriptとLisp
JavaScriptとLispJavaScriptとLisp
JavaScriptとLisp
 
Ring
RingRing
Ring
 
raspi-led-matrix
raspi-led-matrixraspi-led-matrix
raspi-led-matrix
 

Viewers also liked

Rechtevenredige grootheden
Rechtevenredige groothedenRechtevenredige grootheden
Rechtevenredige groothedenleencroes
 
Universidad nacional de el salvador
Universidad nacional de el salvadorUniversidad nacional de el salvador
Universidad nacional de el salvadorAlejandro Arias
 
La contaminación
La contaminaciónLa contaminación
La contaminación38528238
 
MID Curitiba Centro Salas Comerciais pronto para uso Vendas - (41) 9609-7986 ...
MID Curitiba Centro Salas Comerciais pronto para uso Vendas - (41) 9609-7986 ...MID Curitiba Centro Salas Comerciais pronto para uso Vendas - (41) 9609-7986 ...
MID Curitiba Centro Salas Comerciais pronto para uso Vendas - (41) 9609-7986 ...investimentos
 
Evaluación de recursos digitales
Evaluación de recursos digitalesEvaluación de recursos digitales
Evaluación de recursos digitaleskatrina2524
 
Diagnostico de informatica y convergencia tecnologica
Diagnostico de informatica y convergencia tecnologicaDiagnostico de informatica y convergencia tecnologica
Diagnostico de informatica y convergencia tecnologicaAlbert Florez Zuñiga
 
визначні місця венеції !
визначні місця венеції !визначні місця венеції !
визначні місця венеції !vikTory19i
 

Viewers also liked (17)

Asign 1
Asign 1Asign 1
Asign 1
 
Rechtevenredige grootheden
Rechtevenredige groothedenRechtevenredige grootheden
Rechtevenredige grootheden
 
Revolucion industrial
Revolucion industrialRevolucion industrial
Revolucion industrial
 
Universidad nacional de el salvador
Universidad nacional de el salvadorUniversidad nacional de el salvador
Universidad nacional de el salvador
 
20121015
2012101520121015
20121015
 
File furniture
File furnitureFile furniture
File furniture
 
Presentasi tourism
Presentasi tourismPresentasi tourism
Presentasi tourism
 
La contaminación
La contaminaciónLa contaminación
La contaminación
 
Deporte (1)
Deporte (1)Deporte (1)
Deporte (1)
 
MID Curitiba Centro Salas Comerciais pronto para uso Vendas - (41) 9609-7986 ...
MID Curitiba Centro Salas Comerciais pronto para uso Vendas - (41) 9609-7986 ...MID Curitiba Centro Salas Comerciais pronto para uso Vendas - (41) 9609-7986 ...
MID Curitiba Centro Salas Comerciais pronto para uso Vendas - (41) 9609-7986 ...
 
Evaluación de recursos digitales
Evaluación de recursos digitalesEvaluación de recursos digitales
Evaluación de recursos digitales
 
Presentación1
Presentación1Presentación1
Presentación1
 
LOS 10 COMPORTAMIENTOS DIGITALES
LOS 10 COMPORTAMIENTOS DIGITALESLOS 10 COMPORTAMIENTOS DIGITALES
LOS 10 COMPORTAMIENTOS DIGITALES
 
Analisi swot
Analisi swotAnalisi swot
Analisi swot
 
Diagnostico de informatica y convergencia tecnologica
Diagnostico de informatica y convergencia tecnologicaDiagnostico de informatica y convergencia tecnologica
Diagnostico de informatica y convergencia tecnologica
 
визначні місця венеції !
визначні місця венеції !визначні місця венеції !
визначні місця венеції !
 
Tic hipervínculos
Tic hipervínculosTic hipervínculos
Tic hipervínculos
 

Similar to Cueros%20 lazyload

G*なクラウド ~雲のかなたに~
G*なクラウド ~雲のかなたに~G*なクラウド ~雲のかなたに~
G*なクラウド ~雲のかなたに~Tsuyoshi Yamamoto
 
[DEPRECATED]Gradle the android
[DEPRECATED]Gradle the android[DEPRECATED]Gradle the android
[DEPRECATED]Gradle the androidJun Liu
 
Develop Android app using Golang
Develop Android app using GolangDevelop Android app using Golang
Develop Android app using GolangSeongJae Park
 
Globus toolkit4installationguide
Globus toolkit4installationguideGlobus toolkit4installationguide
Globus toolkit4installationguideAdarsh Patil
 
G*なクラウド 雲のかなたに ショートバージョン
G*なクラウド 雲のかなたに ショートバージョンG*なクラウド 雲のかなたに ショートバージョン
G*なクラウド 雲のかなたに ショートバージョンTsuyoshi Yamamoto
 
Tested on ubuntu,Linux#include stdio.h #include string.h.pdf
Tested on ubuntu,Linux#include stdio.h #include string.h.pdfTested on ubuntu,Linux#include stdio.h #include string.h.pdf
Tested on ubuntu,Linux#include stdio.h #include string.h.pdfaquacare2008
 
GNOME GeoClue - The Geolocation Service in Gnome
GNOME GeoClue - The Geolocation Service in GnomeGNOME GeoClue - The Geolocation Service in Gnome
GNOME GeoClue - The Geolocation Service in GnomeWilliam Lee
 
GPars For Beginners
GPars For BeginnersGPars For Beginners
GPars For BeginnersMatt Passell
 
Easy deployment & management of cloud apps
Easy deployment & management of cloud appsEasy deployment & management of cloud apps
Easy deployment & management of cloud appsDavid Cunningham
 
WASM Garbage Collection in JSC
WASM Garbage Collection in JSCWASM Garbage Collection in JSC
WASM Garbage Collection in JSCIgalia
 
Mobile App Development: Primi passi con NativeScript e Angular 2
Mobile App Development: Primi passi con NativeScript e Angular 2Mobile App Development: Primi passi con NativeScript e Angular 2
Mobile App Development: Primi passi con NativeScript e Angular 2Filippo Matteo Riggio
 
CGo for fun and profit
CGo for fun and profitCGo for fun and profit
CGo for fun and profitLiz Frost
 
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCAndroid Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCJim Tochterman
 
Building native Android applications with Mirah and Pindah
Building native Android applications with Mirah and PindahBuilding native Android applications with Mirah and Pindah
Building native Android applications with Mirah and PindahNick Plante
 
Commenting in Agile Development
Commenting in Agile DevelopmentCommenting in Agile Development
Commenting in Agile DevelopmentJan Rybák Benetka
 

Similar to Cueros%20 lazyload (20)

dojo.Patterns
dojo.Patternsdojo.Patterns
dojo.Patterns
 
G*なクラウド ~雲のかなたに~
G*なクラウド ~雲のかなたに~G*なクラウド ~雲のかなたに~
G*なクラウド ~雲のかなたに~
 
Trimming The Cruft
Trimming The CruftTrimming The Cruft
Trimming The Cruft
 
[DEPRECATED]Gradle the android
[DEPRECATED]Gradle the android[DEPRECATED]Gradle the android
[DEPRECATED]Gradle the android
 
Develop Android app using Golang
Develop Android app using GolangDevelop Android app using Golang
Develop Android app using Golang
 
Globus toolkit4installationguide
Globus toolkit4installationguideGlobus toolkit4installationguide
Globus toolkit4installationguide
 
G*なクラウド 雲のかなたに ショートバージョン
G*なクラウド 雲のかなたに ショートバージョンG*なクラウド 雲のかなたに ショートバージョン
G*なクラウド 雲のかなたに ショートバージョン
 
Tested on ubuntu,Linux#include stdio.h #include string.h.pdf
Tested on ubuntu,Linux#include stdio.h #include string.h.pdfTested on ubuntu,Linux#include stdio.h #include string.h.pdf
Tested on ubuntu,Linux#include stdio.h #include string.h.pdf
 
GNOME GeoClue - The Geolocation Service in Gnome
GNOME GeoClue - The Geolocation Service in GnomeGNOME GeoClue - The Geolocation Service in Gnome
GNOME GeoClue - The Geolocation Service in Gnome
 
Dojo and Adobe AIR
Dojo and Adobe AIRDojo and Adobe AIR
Dojo and Adobe AIR
 
G* on GAE/J 挑戦編
G* on GAE/J 挑戦編G* on GAE/J 挑戦編
G* on GAE/J 挑戦編
 
GPars For Beginners
GPars For BeginnersGPars For Beginners
GPars For Beginners
 
Easy deployment & management of cloud apps
Easy deployment & management of cloud appsEasy deployment & management of cloud apps
Easy deployment & management of cloud apps
 
WASM Garbage Collection in JSC
WASM Garbage Collection in JSCWASM Garbage Collection in JSC
WASM Garbage Collection in JSC
 
Mobile App Development: Primi passi con NativeScript e Angular 2
Mobile App Development: Primi passi con NativeScript e Angular 2Mobile App Development: Primi passi con NativeScript e Angular 2
Mobile App Development: Primi passi con NativeScript e Angular 2
 
CGo for fun and profit
CGo for fun and profitCGo for fun and profit
CGo for fun and profit
 
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCAndroid Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
 
Txjs
TxjsTxjs
Txjs
 
Building native Android applications with Mirah and Pindah
Building native Android applications with Mirah and PindahBuilding native Android applications with Mirah and Pindah
Building native Android applications with Mirah and Pindah
 
Commenting in Agile Development
Commenting in Agile DevelopmentCommenting in Agile Development
Commenting in Agile Development
 

Cueros%20 lazyload

  • 1. /* Copyright (c) 2008 Ryan Grove <ryan@wonko.com>. All rights reserved. Licensed under the BSD License: http://www.opensource.org/licenses/bsd-license.html Version: 1.0.4 */ var LazyLoad=function(){var E=document,D=null,A=[],C;function B(){if(C){return } var G=navigator.userAgent,F;C={gecko:0,ie:0,webkit:0};F=G.match(/AppleWebKit/ (S*)/);if(F&&F[1]) {C.webkit=parseFloat(F[1])}else{F=G.match(/MSIEs([^;]*)/);if(F&&F[1]) {C.ie=parseFloat(F[1])}else{if((/Gecko/(S*)/).test(G)) {C.gecko=1;F=G.match(/rv:([^s)]*)/);if(F&&F[1]) {C.gecko=parseFloat(F[1])}}}}}return{load:function(K,L,J,I){var H=E.getElementsByTagName("head")[0],G,F;if(K){K=K.constructor===Array?K: [K];for(G=0;G<K.length;++G){A.push({url:K[G],callback:G===K.length-1? L:null,obj:J,scope:I})}}if(D||!(D=A.shift())){return } B();F=E.createElement("script");F.src=D.url;if(C.ie) {F.onreadystatechange=function(){if(this.readyState==="loaded"|| this.readyState==="complete"){LazyLoad.requestComplete()}}}else{if(C.gecko|| C.webkit>=420) {F.onload=LazyLoad.requestComplete;F.onerror=LazyLoad.requestComplete}}H.appendC hild(F);if(!C.ie&&!C.gecko&&!(C.webkit>=420)) {F=E.createElement("script");F.appendChild(E.createTextNode("LazyLoad.requestCom plete();"));H.appendChild(F)}},loadOnce:function(N,O,L,P,G){var H=[],I=E.getElementsByTagName("script"),M,J,K,F;N=N.constructor===Array?N: [N];for(M=0;M<N.length;++M){K=false;F=N[M];for(J=0;J<I.length;++J) {if(F===I[J].src){K=true;break}}if(!K){H.push(F)}}if(H.length>0) {LazyLoad.load(H,O,L,P)}else{if(G){if(L){if(P) {O.call(L)}else{O.call(window,L)}}else{O.call()}}}},requestComplete:function() {if(D.callback){if(D.obj){if(D.scope) {D.callback.call(D.obj)}else{D.callback.call(window,D.obj)}}else{D.callback.call ()}}D=null;if(A.length){LazyLoad.load()}}}}();