Implement HTML video and audio element lazy-loading via the loading attribute
Categories
(Core :: Audio/Video, enhancement, P3)
Tracking
()
People
(Reporter: sjehl, Assigned: sjehl, NeedInfo)
References
Details
(Keywords: dev-doc-needed, Whiteboard: web-feature)
User Story
web-feature: loading-lazy-media
Attachments
(1 file, 1 obsolete file)
Steps to reproduce:
This is a request for support for the loading attribute for video and audio elements, which would support lazy-loading for video and audio media.
The loading attribute for video and audio would use similar conventions to img and iframe, where the attribute has precedent, and provides performance benefits. It would have possible values of eager and lazy. When the loading attribute value is lazy, loading of any audio, video or poster image data, as well as autoplay playback, must defer until layout is known and the video is in the viewport.
Issue tracker ticket https://github.com/whatwg/html/pull/11980
Mozilla Standards Position: https://github.com/mozilla/standards-positions/issues/1325
Actual results:
Firefox does not currently offer built-in lazy loading of video or audio.
Expected results:
Firefox should lazy-load video and video elements that have a loading="lazy" attribute.
Updated•9 months ago
|
| Assignee | ||
Comment 1•8 months ago
|
||
This patch implements a proposed loading attribute for video elements, enabling lazy loading of video sources and poster images, and deferring autoplay.
This change is proposed to be added to the HTML spec in the following PR:
https://github.com/whatwg/html/pull/11980
Co-authored-by: Brad Frost <bfrost@squarespace.com>
| Assignee | ||
Comment 2•8 months ago
|
||
Web Platform Tests for this feature are in this PR https://github.com/web-platform-tests/wpt/pull/57051
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Comment 3•7 months ago
|
||
Updated issue description to include the audio element in addition to video. Our team is working on next steps to include audio in relevant spec, tests, and browser patches next.
Updated•7 months ago
|
Comment 4•7 months ago
|
||
As far as I understand, this is implemented behind a pref. So, once the patch lands, a note should be added to https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features.
And it may also be worth mentioning in the dev release notes and the general ones (for Nightly).
Sebastian
Comment 5•3 months ago
|
||
Co-authored-by: Scott Jehl <scott.jehl@gmail.com>
Updated•3 months ago
|
Updated•3 months ago
|
Updated•2 months ago
|
Backed out for causing build bustages @nsHtml5TreeBuilderCppSupplement.h.
Comment 10•2 months ago
|
||
| bugherder | ||
Comment 11•2 months ago
|
||
Comment 12•2 months ago
|
||
Updated•2 months ago
|
Updated•2 months ago
|
Comment 13•2 months ago
|
||
Backout merged to central: https://hg.mozilla.org/mozilla-central/rev/9ed5ad02bcb1
Comment 14•2 months ago
|
||
Comment 15•2 months ago
|
||
Comment 16•2 months ago
|
||
Backed out for causing wpt leaks
Comment 17•1 month ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:jimm, since the bug has recent activity, could you have a look please?
For more information, please visit BugBot documentation.
Description
•