Add loading attribute to audio and video#29256
Draft
tunetheweb wants to merge 4 commits intomdn:mainfrom
Draft
Conversation
Contributor
|
Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs). |
caugner
reviewed
Mar 13, 2026
| }, | ||
| "loading": { | ||
| "__compat": { | ||
| "spec_url": "https://html.spec.whatwg.org/multipage/media.html#attr-media-loading", |
Contributor
There was a problem hiding this comment.
This fragment doesn't work for me, presumably because whatwg/html#11980 isn't merged yet.
Contributor
Author
There was a problem hiding this comment.
Correct. Oh I didn't set this to draft because of that despite saying I would in the original comment. Apologies!
Contributor
Author
There was a problem hiding this comment.
That's odd. I can't seem to convert this to draft. Clicking the "Convert to draft" link opens the dialog but then clicking the button does nothing! Can you click that @caugner ?
Contributor
There was a problem hiding this comment.
I clicked the button. No idea why it worked for me.
rrmolr8-ctrl
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
We're adding
loading=lazyto<audio>and<video>attributes!Coming to Chrome in 147 (behind a flag): https://chromestatus.com/feature/5200068565139456
FYI: @scottjehl @hjanuschka
Test results and supporting details
Audio:
https://wpt.fyi/results/html/semantics/embedded-content/the-audio-element?label=experimental&label=master&aligned
Video:
https://wpt.fyi/results/html/semantics/embedded-content/the-video-element?label=experimental&label=master&aligned
https://chromestatus.com/feature/5200068565139456
Implementation bugs:
Firefox and Safari implementations are being actively worked on but, as per policy, I've left this marked as "experimental" until two implementations land in stable.
More details:
Related issues
See spec updates here: whatwg/html#11980. We should wait for that to land any second now, so leaving this in draft for now.
Content PR: mdn/content#43434
Makes progress on: mdn/mdn#809