As of today (Firefox 120), I intend to turn on iframe lazy loading by
default on all platforms. It has a flag (dom.iframe_lazy_loading.enabled),
but it is being enabled by default in the same implementation patch as it
is a low-risk feature and we pass web platform tests. Chromium and WebKit
already ship it at this time.

Summary:
Lazy loading iframes (<iframe loading=lazy>) allow websites to defer
loading an iframe until it is in view to speed up first page loads and
reduce initial network usage by specifying the element's loading attribute
as "lazy". We have supported lazy loading images since Firefox 75.

Bug: https://bugzil.la/1622090
Specification: https://html.spec.whatwg.org/#attr-iframe-loading
Standards body: WHATWG (HTML)
Platform coverage: All

Preference: dom.iframe_lazy_loading.enabled (on by default)
DevTools bug: None
Standards position:
https://github.com/mozilla/standards-positions/issues/840

Other browsers:
- Blink: Shipped since Chrome 77
- WebKit: Shipped since Safari 16.4

Web platform tests:
https://wpt.fyi/results/html/semantics/embedded-content/the-iframe-element?q=lazy
(I also plan to add more for edge cases in the patch and future)

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAKxzt6bbqnWtjfc91RPDsDPa_0PUrOGSxW8z7OGKENWSL2ow%2BQ%40mail.gmail.com.

Reply via email to