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 am using placeholder to always display images but in low resolution. I do so because I don’t know the size of images ahead of time and use in-page anchors for navigation (this breaks when the browser can’t figure out the position of elements because images aren’t rendered). I use width="100%" and let the browser determine the height using the natural aspect ratio. This all worked perfectly before, but when using LazyLoadImage, a flicker occurs when high resolution images (that aren’t cached) are rendered (see animated gif where first cover image is cache vs the three others).
I'm running into this too, I believe it has something to do with the placeholder being removed from the DOM sooner than the image itself is loaded, which gives the flash. What would be preferable is that the placeholder is over the expected image until the image is guaranteed loaded, then remove the placeholder in the DOM.
If you break on the parent of the lazy loader, you can step through and see where the placeholder is removed prior to the image being placed into the DOM.
Bug description
I am using
placeholder
to always display images but in low resolution. I do so because I don’t know the size of images ahead of time and use in-page anchors for navigation (this breaks when the browser can’t figure out the position of elements because images aren’t rendered). I usewidth="100%"
and let the browser determine the height using the natural aspect ratio. This all worked perfectly before, but when usingLazyLoadImage
, a flicker occurs when high resolution images (that aren’t cached) are rendered (see animated gif where first cover image is cache vs the three others).To Reproduce
Expected behavior
No flicker
Screenshots
Technical details:
The text was updated successfully, but these errors were encountered: