Skip to content

Commit 6c40a32

Browse files
committed
wait until document.ready for initial check
1 parent 09133c2 commit 6c40a32

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,11 @@ <h2>Trigger</h2>
622622

623623
<section id="releasehistory">
624624
<h2>Release History</h2>
625+
<h4>0.6.3</h4>
626+
<ul>
627+
<li>Wait until $(document).ready() to perform initial check of lazy images.</li>
628+
</ul>
629+
625630
<h4>0.6.2</h4>
626631
<ul>
627632
<li>Added a class of "ll-loadstarted" to indicte that media has started but, perhaps, hasn't finished downloading.</li>

jquery.laziestloader.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @preserve LaziestLoader - v0.6.2 - 2015-09-28
2+
* @preserve LaziestLoader - v0.6.3 - 2015-11-16
33
* A responsive lazy loader for jQuery.
44
* http://sjwilliams.github.io/laziestloader/
55
* Copyright (c) 2015 Josh Williams; Licensed MIT
@@ -262,7 +262,9 @@
262262
laziestloader();
263263
});
264264

265-
laziestloader();
265+
$(document).ready(function() {
266+
laziestloader();
267+
});
266268

267269
return this;
268270
};

jquery.laziestloader.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "laziestloader",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"author": "Josh Williams <[email protected]>",
55
"description": "A responsive-aware jQuery plugin to smartly lazy load images and trigger callbacks.",
66
"repository": {

0 commit comments

Comments
 (0)