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

Add the loading content attribute and IDL for <map> #140

Closed
Malvoz opened this issue Nov 1, 2020 · 0 comments
Closed

Add the loading content attribute and IDL for <map> #140

Malvoz opened this issue Nov 1, 2020 · 0 comments
Labels

Comments

@Malvoz
Copy link
Member

Malvoz commented Nov 1, 2020

UCR link: Maps4HTML/HTML-Map-Element-UseCases-Requirements#232

Lazy-loading is a widely used technique to improve performance and help users conserve bandwidth. The HTML spec defines the loading attribute for images and iframes (I'm aware of plans to support video as well).

I believe it'd make the most sense to have <map loading="lazy"> defer all fetches from <layer src>, but probably also other inline MapML elements that fetch resources.

This feature is not essential to getting maps into browsers (and is probably a bit more complex implementation than that of <img loading="lazy"> or <iframe loading="lazy">). For that reason, perhaps it's best to defer this feature until the spec has reached an appropriate Maturity Level on the W3C Recommendation Track.

@Malvoz Malvoz added the defer label Nov 1, 2020
@Malvoz Malvoz closed this as completed Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant