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
I have a page with 6 images that are loaded using 5 <img> elements and 1 <picture> element. With the exception of the first image, all the other are lazy loaded using yall.js.
The images loaded in the s are lazy loaded correctly, but the image loaded in the picture element get loaded before the user scrolls to it.
If you open the network tab in devtools, you can see that images 1, 2 and 6 are loaded. As image 6 is at the bottom of the page, therefore outside the viewport, it should be hidden until the user reaches it in some way.
Why it's not waiting to load images inside
The text was updated successfully, but these errors were encountered:
malchata
changed the title
Picture element has its image loaded before the users srolls to it.
Picture element has its image loaded before the users scrolls to it.
Apr 21, 2020
Hi.
I have a page with 6 images that are loaded using 5
<img>
elements and 1<picture>
element. With the exception of the first image, all the other are lazy loaded using yall.js.The images loaded in the s are lazy loaded correctly, but the image loaded in the picture element get loaded before the user scrolls to it.
Here's the page: https://lazyloadingtest.netlify.com/yall.html
If you open the network tab in devtools, you can see that images 1, 2 and 6 are loaded. As image 6 is at the bottom of the page, therefore outside the viewport, it should be hidden until the user reaches it in some way.
Why it's not waiting to load images inside
The text was updated successfully, but these errors were encountered: