Skip to content

Add the loading attribute for <img> and <iframe>#5284

Closed
Malvoz wants to merge 3 commits intomdn:masterfrom
Malvoz:loading-attr
Closed

Add the loading attribute for <img> and <iframe>#5284
Malvoz wants to merge 3 commits intomdn:masterfrom
Malvoz:loading-attr

Conversation

@Malvoz
Copy link
Copy Markdown
Contributor

@Malvoz Malvoz commented Dec 6, 2019

The experimental loading attribute, used to lazy-load (or force eager loading of) <img> and <iframe>.

Enabled by default in Chrome 76:
https://chromestatus.com/feature/5645767347798016

Bugzilla bug: https://bugzil.la/1542784 (seemingly only for <img>, thus only added the bug to img.json)
Webkit bug: https://webkit.org/b/196698

I'd be greatful if anyone can help me determine/confirm that the Webkit bug applies to both Safari and Safari iOS, as well as the Bugzilla bug applying to both Firefox and Firefox for Android.

@ghost ghost added the data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML label Dec 6, 2019
@queengooborg
Copy link
Copy Markdown
Contributor

Hey @Malvoz, thanks for your PR! Even though the CI says it passed, there's actually some issues (we made some changes to the linter that affected the return code). If you can rebase against the latest master and check the results of npm test, you'll see there's a couple issues.

@queengooborg
Copy link
Copy Markdown
Contributor

Hey @Malvoz, do you plan to return to this PR?

@queengooborg
Copy link
Copy Markdown
Contributor

Since we haven't heard back, I went ahead and made a new PR that fixes the linter errors. Thanks for getting the ball rolling!

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

Labels

data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants