Skip to content

Add support for video and audio element lazy-loading via the loading attribute #586

@scottjehl

Description

@scottjehl

WebKittens

@annevk

Title of the proposal

HTML Video Element Loading Attribute

URL to the spec

https://whatpr.org/html/11980/media.html#the-video-element

URL to the spec's repository

whatwg/html#11980

Issue Tracker URL

whatwg/html#10376

Explainer URL

No response

TAG Design Review URL

No response

Mozilla standards-positions issue URL

mozilla/standards-positions#1325 (comment)

WebKit Bugzilla URL

No response

WebKit Implementation

WebKit/WebKit#58220

Firefox Implementation

WebKit/WebKit#58220

Chrome Implementation

https://chromium-review.googlesource.com/c/chromium/src/+/7511253

Web Platform Tests

Merged web-platform-tests/wpt#57051

Radar URL

rdar://problem/166791801

Description

This is a request for WebKit's position on adding support for video and audio element lazy-loading via the loading attribute.

2 vendors are positive on this and support is merged in Chrome Canary.

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 video or poster image data, as well as autoplay playback, must defer until layout is known and the video is in the viewport.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions