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 ad9d49c commit 0ddac2bCopy full SHA for 0ddac2b
jquery.laziestloader.js
@@ -122,6 +122,9 @@
122
} else {
123
if (typeof callback === 'function') callback.call(this);
124
}
125
+
126
+ // reflect current state in classes
127
+ $(this).addClass('ll-loaded').removeClass('ll-notloaded');
128
});
129
130
@@ -199,8 +202,9 @@
199
202
200
203
201
204
- // set element dimensions?
- $elements.each(setHeight);
205
+ // add inital state classes, ahd check if
206
+ // element dimensions need to be set.
207
+ $elements.addClass('ll-init ll-notloaded').each(setHeight);
208
209
bindLoader();
210
0 commit comments