-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images not showing in Chrome v80 when loading="lazy" #250
Comments
@hassanasad we're unable to reproduce this on our end. Can you please provide a sample code where we can see this? |
I have provided a simple code example above. Can you please make sure you flush browser cache and then try. In Chrome browser, the images stop showing up with |
@hassanasad is that snippet the only thing on your page? when using lazy loading on chrome the threshold of the viewport is quite large. Using your snippet with the following yields a lazy-loaded resource.
You can find more information on the threshold on the following- https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/frame/settings.json5?l=971-1003&rcl=e8f3cf0bbe085fee0d1b468e84395aad3ebb2cad |
Did you try it on Chrome version => 80 ? |
The images are loading for me on chrome 80. Here's a sample that's using both lazy load and the placeholder component you can use as a reference- https://codesandbox.io/s/nice-mahavira-qt46g If you're still experiencing issues can you please share a sample on codesandbox or stackblitz where you recreate the issue? |
In Chrome versions prior to 80 everything works fine. However the images that have attribute
loading="lazy"
stop showing up. The image tag inside thecl-image
component is set todisplay: none
.Is anyone else having this issue?
My simple code:
The text was updated successfully, but these errors were encountered: