We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9595e4e commit 822364dCopy full SHA for 822364d
src/jquery.lazyloadxt.js
@@ -41,6 +41,7 @@
41
visibleOnly: true
42
},
43
$window = $(window),
44
+ $document = $(document),
45
$isFunction = $.isFunction,
46
$extend = $.extend,
47
$data = $.data || function (el, name) {
@@ -279,14 +280,16 @@
279
280
/**
281
* Initialization
282
*/
- $(document).ready(function () {
283
+ $document.ready(function () {
284
triggerEvent('start', $window);
285
286
$window
287
.on(options.loadEvent, initLazyElements)
288
.on(options.updateEvent, queueCheckLazyElements)
289
.on(options.forceEvent, forceLoadAll);
290
291
+ $document.on(options.updateEvent, queueCheckLazyElements);
292
+
293
if (options.autoInit) {
294
initLazyElements(); // standard initialization
295
}
0 commit comments