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

Is v-lazy-image SEO optimized? #78

Open
AndrewBogdanovTSS opened this issue Oct 28, 2020 · 2 comments
Open

Is v-lazy-image SEO optimized? #78

AndrewBogdanovTSS opened this issue Oct 28, 2020 · 2 comments

Comments

@AndrewBogdanovTSS
Copy link

I use Nuxt to SSR the content of my page. When I look at rendered page content I see that all my images are just black 1px image which is used in the src-placeholder attribute. Is it needed to provide a fallback with regular img inside noscript tag when v-lazy-image is used or it automatically handles clients that don't support scroll similar to how lazysizes does it?

@alexjoverm
Copy link
Owner

Awesome point @AndrewBogdanovTSS. That's a case actually not handled. A nice and easy fix for that would be checking if window exists, and if not then use src as srcPlaceholder

@alexjoverm
Copy link
Owner

If you want to open a PR I'd be happy to review

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

2 participants