Bug 303995
| Summary: | Implement HTML video element lazy-loading via the loading attribute | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | sjehl |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Enhancement | CC: | jer.noble |
| Priority: | P2 | Keywords: | Performance |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
sjehl
This is a request to add support for the loading attribute for HTML video elements, which would facilitate lazy-loading for video.
The loading attribute for video 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 video or poster image data, as well as autoplay playback, must defer until layout is known and the video is in the viewport.
As an aside, we are interested in helping implement a patch for this.
Related links:
- HTML Standard Spec Change Proposal https://github.com/whatwg/html/pull/11980
- Github Issue https://github.com/whatwg/html/issues/10376
- Mozilla Standards Position: Positive https://github.com/mozilla/standards-positions/issues/1325
- Webkit Standards Position: Pending https://github.com/WebKit/standards-positions/issues/586
- Corresponding Gecko Bug Tracker: https://bugzilla.mozilla.org/show_bug.cgi?id=2005072
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |