Skip to content

Commit

Permalink
Better explanation why delay is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuupola committed Dec 12, 2012
1 parent 6a97c71 commit c7a27c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.lazyload.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@

/* Force initial check if images should appear. */
$(document).ready(function() {
/* Delay or Webkit browsers will in some cases return false from */
/* initial $.is(":visible") call inside update() */
/* Delay or Webkit browsers return false from initial $.is(":visible") */
/* call inside update() when image does not have width and height set. */
setTimeout(function() {
update();
}, 50);
Expand Down

0 comments on commit c7a27c0

Please sign in to comment.