You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<linkrel="shortcut icon" href="./assets/img/favicon.png"><!-- TO DO -->
@@ -136,9 +136,9 @@ <h2>Let's do some lazy load on click</h2>
136
136
137
137
<divclass="content-wrap onscroll">
138
138
<h2>Let's do some lazy load on scroll</h2>
139
-
<p>In this example, we target the parent <code>.testCol2</code> element with our function, and DLL lazy loads it and it's inner elements. And now we'll scroll down a bit.</p>
139
+
<p>In this example, we target the parent <code>.img-wrapper</code> element with our function, and DLL lazy loads it and it's inner elements. And now we'll scroll down a bit.</p>
<li>Lazy load a single element that has <code>data-src</code> attribute, ideally an <code><img></code> or a layer element with no child elements</li>
197
-
<li>By the way, do you want retina images loaded later?</li>
198
-
<li>Works for <code><img></code> and other elements as well, that's right, it's<code>background-image</code></li>
199
-
<li>When an element other than image is targeted, it will also lazy load it's child elements having the <code>data-src</code> attribute</li>
254
+
<li>With DLL.js version 1.0.0 it works with videos as well. How cool is that?</li>
255
+
<li>Works for <code><img></code> and other elements as well, to update the<code>background-image</code></li>
256
+
<li>When an element other than image/video is targeted, it will also lazy load it's child elements having the <code>data-src</code> attribute</li>
200
257
<li>You can also call DLL to do lazy load for all elements in a page at once, by simply using <code>new dll();</code></li>
201
258
<li>DLL has callback ability and it's triggered when the target element is loaded or it's last element is loaded</li>
202
259
<li>With a <code>elementInViewport</code> function you can lazy load elements on scroll, like the example above</li>
0 commit comments