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 native loading attribute #136

Open
danielck opened this issue Dec 3, 2019 · 0 comments
Open

Support native loading attribute #136

danielck opened this issue Dec 3, 2019 · 0 comments

Comments

@danielck
Copy link
Contributor

danielck commented Dec 3, 2019

Currently Chromium supports the loading attribute on img and iframe elements, which can speed up initial page load considerably especially on mobile.

It's still a draft in the WHATWG spec and not in the W3C spec, as far as I know.

Since adding the native attribute would immediately benefit 62% of users (according to caniuse.com) I suggest adding support to the DP image helper by directly supporting adding the loading attribute.

Spec: whatwg/html#3752
Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1542784
Polyfill: https://github.com/mfranzke/loading-attribute-polyfill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants