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

Image src omitted #101

Closed
danielroe opened this issue Nov 20, 2020 · 1 comment
Closed

Image src omitted #101

danielroe opened this issue Nov 20, 2020 · 1 comment

Comments

@danielroe
Copy link
Member

I'd suggest image src should be set to a transparent base64 pixel when not loaded - e.g.

<img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==">

Otherwise the HTML won't validate, and there are potential other issues.

@farnabaz
Copy link
Member

In the next version, the original image should not render until it becomes visible at the viewport and has a valid src.
This fixed in https://github.com/nuxt/image/blob/dev/src/runtime/nuxt-picture.ts#L323

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