Skip to content
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

Lazy loading and SEO #259

Open
mikeg2010 opened this issue May 14, 2021 · 0 comments
Open

Lazy loading and SEO #259

mikeg2010 opened this issue May 14, 2021 · 0 comments

Comments

@mikeg2010
Copy link

mikeg2010 commented May 14, 2021

In order to lazy load the images I have to use the data-src attribute and leave the src attribute out of the img tag. I tried using both but the browser doesn't lazy load the images, it loads them right away. And when I remove the src attribute it fails the W3C validation, which according to various SEO sources is not good for search ranking. Leaving src ="" works with lazy loading but it still fails W3C validation. Another suggestion was to use a transparent inline image like data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== but the slider simply returns a blank screen.

Is there a workaround that will lazy load the image and be SEO-friendly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant