Skip to content

Add loading-lazy-media: lazy loading for <video> and <audio> elements#7488

Merged
Fyrd merged 1 commit intoFyrd:mainfrom
hjanuschka:add-loading-lazy-media
Mar 6, 2026
Merged

Add loading-lazy-media: lazy loading for <video> and <audio> elements#7488
Fyrd merged 1 commit intoFyrd:mainfrom
hjanuschka:add-loading-lazy-media

Conversation

@hjanuschka
Copy link
Contributor

@hjanuschka hjanuschka commented Mar 3, 2026

Summary

Adds a new loading-lazy-media feature for the loading attribute on <video> and <audio> elements, allowing deferred media loading until the element is near the viewport.

Context

Support data

  • Chrome 147+: n d #1 -- behind the LazyLoadVideoAndAudio experimental flag
  • Firefox: n (no support yet, positive standards position)
  • Safari/WebKit: n (no signal yet)
  • All other browsers: n (no support)

Notes

  • Set as child of loading-lazy-attr (the existing img/iframe lazy loading feature)
  • shown: false as per contributing guidelines for new features
  • Validation passes (npm run validate)

@hjanuschka hjanuschka marked this pull request as draft March 3, 2026 15:53
@hjanuschka hjanuschka force-pushed the add-loading-lazy-media branch from 37704a4 to 59776fa Compare March 3, 2026 15:55
@hjanuschka hjanuschka force-pushed the add-loading-lazy-media branch from 59776fa to eef5a39 Compare March 3, 2026 16:36
@hjanuschka hjanuschka marked this pull request as ready for review March 3, 2026 16:37
@scottjehl
Copy link

Nice! +1

@Fyrd Fyrd merged commit 6e01139 into Fyrd:main Mar 6, 2026
1 check passed
@Fyrd
Copy link
Owner

Fyrd commented Mar 6, 2026

Thanks!

@hjanuschka
Copy link
Contributor Author

@Fyrd do you know when there ll be a release?
added the caniuse feature, but CI fails web-platform-dx/web-features#3837 (guess because its not released yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants