html icon indicating copy to clipboard operation
html copied to clipboard

Add support for video element lazy-loading via the loading attribute

Open scottjehl opened this issue 3 weeks ago • 2 comments

Specify support for the loading attribute for the video element using similar conventions to img and iframe, where the attribute already has precedent. Loading has possible values of eager and lazy. When the video element's loading attribute value is lazy, loading of any video or poster image data, as well as autoplay playback, must defer until layout is known and the video is in the viewport.

Resolves #10376

  • [ ] At least two implementers are interested (and none opposed):
    • Mozilla/Gecko Postion: Positive https://github.com/mozilla/standards-positions/issues/1325
    • WebKit Position: Pending https://github.com/WebKit/standards-positions/issues/586
    • Chromium: ...
  • [ ] Tests are written and can be reviewed and commented upon at:
  • [ ] Implementation bugs are filed:
    • Chromium: …
    • Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=2005072
    • WebKit: https://bugs.webkit.org/show_bug.cgi?id=303995
  • [ ] MDN issue is filed: …
  • [x] The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/acknowledgements.html ( diff ) /indices.html ( diff ) /media.html ( diff ) /urls-and-fetching.html ( diff )

scottjehl avatar Dec 02 '25 18:12 scottjehl

cc @whatwg/media

annevk avatar Dec 04 '25 07:12 annevk

This direction makes sense to me, but I'm not personally able to make a commitment to implement in Chromium.

@zcorpan I think you've mentioned this feature, perhaps you have feedback?

foolip avatar Dec 09 '25 10:12 foolip