Native lazy loading

Created on 27 August 2024, 3 months ago

Problem/Motivation

Browsers now supports native lazy loading on iframes: https://web.dev/iframe-lazy-loading/

Steps to reproduce

Insert an iframe on a node and add display:none; on it.
The iframe is loaded even if not displayed.

Proposed resolution

The iframe module should add a loading="lazy" attribute on iframes.

It could be optional because there are some use cases where you don't want lazy loading (iframe that are at the top of the page for example).

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024