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

Introduction to images should also cover lazy-loading #8058

Open
zcorpan opened this issue Jun 30, 2022 · 1 comment
Open

Introduction to images should also cover lazy-loading #8058

zcorpan opened this issue Jun 30, 2022 · 1 comment
Labels
clarification Standard could be clearer topic: img

Comments

@zcorpan
Copy link
Member

zcorpan commented Jun 30, 2022

https://html.spec.whatwg.org/multipage/images.html#introduction-3 has an introduction to responsive image features.

Then there's a subsection "Adaptive images" (which predated the above introduction), covering the same thing but with more focus on how to specify dimensions and which image to use as "the fallback image".

I think the Adaptive images section should either be removed or folded in to the earlier introduction.

Also, it would be nice to introduce other image-related features, at least lazy-loading. sizes=auto (#8008) has a dependency on loading=lazy, but it's a bit out of the blue to mention lazy-loading in the introduction about responsive images.

If we add multiple subsections to the image introduction, I think we should call the current introduction "Responsive images" (rather than adaptive images).

@zcorpan zcorpan added clarification Standard could be clearer topic: img labels Jun 30, 2022
@zcorpan
Copy link
Member Author

zcorpan commented Jun 30, 2022

Specifying dimensions could maybe be a topic on its own, as the width and height attributes provide the aspect-ratio even when CSS overrides one of the dimensions to auto, and the width and height attributes on <source> could use an introduction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer topic: img
Development

No branches or pull requests

1 participant