Lazy load OEmbed formatter

Created on 5 May 2021, almost 4 years ago
Updated 22 January 2025, 3 months ago

Problem/Motivation

There is the desire to make iframes load lazy. See #3167034-23: Leverage the 'loading' html attribute to enable lazy-load by default for images in Drupal core as an example. Currently, there is one iframe usage in core, but lots in contrib.

Steps to reproduce

Proposed resolution

Continue to use the existing html tag approach. Add a feature to the oembed field formatter to toggle lazy load on/off.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

OEmbed field formatter supports eager or lazy loading of resources i.e. Youtube videos.

Feature request
Status

Fixed

Version

10.1

Component

render system

Created by

heddn Nicaragua

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024