Skip to content

Commit

Permalink
compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Dec 28, 2014
1 parent d3edfe6 commit 10261bb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions animate.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
//clearAttr: true
addClasses: true,
preloadAfterLoad: false,
threshold: 10
threshold: 1
};
</script>
<script src="lazysizes.js" async=""></script>
Expand Down Expand Up @@ -299,7 +299,7 @@ <h3>iframe</h3>

<div class="item">
<div class="intrinsic">
<img alt="100%x200" src="https://farm1.staticflickr.com/113/284651694_69e63b374d_m.jpg"
<img alt="100%x200"
data-sizes="auto"
data-srcset="https://farm1.staticflickr.com/113/284651694_69e63b374d_m.jpg 240w,
https://farm1.staticflickr.com/113/284651694_69e63b374d.jpg 500w,
Expand Down Expand Up @@ -384,7 +384,6 @@ <h3>Widgets/Javascript/Script</h3>
<img
data-sizes="auto"
class="lazyload"
src="https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg"
data-srcset="https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,
https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,
https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<script>

window.lazySizesConfig = {
//preloadAfterLoad: false
//preloadAfterLoad: true
//clearAttr: true
//addClasses: true
};
Expand Down
2 changes: 1 addition & 1 deletion lazysizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
var document = window.document;
var docElem = document.documentElement;
var isPreloading = 0;
var fixChrome = navigator.userAgent.match(/hrome\/(\d+)/) && (RegExp.$1 == 40 || RegExp.$1 == 41);
var fixChrome = window.HTMLPictureElement && navigator.userAgent.match(/hrome\/(\d+)/) && (RegExp.$1 == 40 || RegExp.$1 == 41);

var regPicture = /^picture$/i;
var regImg = /^img$/i;
Expand Down
2 changes: 1 addition & 1 deletion lazysizes.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 no-src.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
//clearAttr: true
addClasses: true
};

</script>
<script src="lazysizes.js" async=""></script>

Expand Down Expand Up @@ -297,7 +298,7 @@ <h3>iframe</h3>

<div class="item">
<div class="intrinsic">
<img alt="100%x200" src="https://farm1.staticflickr.com/113/284651694_69e63b374d_m.jpg"
<img alt="100%x200"
data-sizes="auto"
data-srcset="https://farm1.staticflickr.com/113/284651694_69e63b374d_m.jpg 240w,
https://farm1.staticflickr.com/113/284651694_69e63b374d.jpg 500w,
Expand Down Expand Up @@ -382,7 +383,6 @@ <h3>Widgets/Javascript/Script</h3>
<img
data-sizes="auto"
class="lazyload"
src="https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg"
data-srcset="https://farm5.staticflickr.com/4078/5441060528_31db7838ba_m.jpg 240w,
https://farm5.staticflickr.com/4078/5441060528_31db7838ba_n.jpg 320w,
https://farm5.staticflickr.com/4078/5441060528_31db7838ba.jpg 500w,
Expand Down

0 comments on commit 10261bb

Please sign in to comment.