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

Support for loading attribute #37

Open
number33 opened this issue Jun 24, 2020 · 1 comment
Open

Support for loading attribute #37

number33 opened this issue Jun 24, 2020 · 1 comment

Comments

@number33
Copy link

Are there plans to support lazy loading of images using the 'loading' attribute?

Reference: https://web.dev/native-lazy-loading/#load-in-distance-threshold

Here is the specific section

Images that are defined using the element can also be lazy-loaded:

<picture>
  <source media="(min-width: 800px)" srcset="large.jpg 1x, larger.jpg 2x">
  <img src="photo.jpg" loading="lazy">
</picture>

Although a browser will decide which image to load from any of the elements, the loading attribute only needs to be included to the fallback element.

@npanajotov
Copy link

Anyone?

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