WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 3 months ago

#50041 new enhancement

Manually add loading=lazy in certain image tags loaded by WordPress

Reported by: superpoincare Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.5
Component: Media Keywords:
Focuses: Cc:

Description

in #44427, the feature to lazy load images by default was added.

However it doesn't work on all images, only ones filterable with certain filters.

One such example is the image /wp-includes/images/rss.png loaded by the RSS widget.

Such images need a loading=lazy attribute added manually.

Change History (2)

#1 @sabernhardt
5 months ago

  • Component changed from General to Media

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


3 months ago

Note: See TracTickets for help on using tickets.