Make WordPress Core

Opened 4 years ago

Closed 13 months ago

Last modified 4 weeks ago

#50041 closed enhancement (duplicate)

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

Reported by: superpoincare's profile superpoincare Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.5
Component: Media Keywords: close
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 (6)

#1 @sabernhardt
4 years ago

  • Component changed from General to Media

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


4 years ago

#3 @sabernhardt
2 years ago

  • Keywords needs-patch added

For the RSS widget icon, the lazy-loading attribute is included in my patch on #52224.

These two functions also create markup for images in the wp-includes directory:

#4 @Mista-Flo
13 months ago

  • Keywords close added; needs-patch removed
  • Resolution set to duplicate
  • Status changed from new to closed

That was fixed in this ticket: #52224

#5 @a4jp.com
7 months ago

Just a question. Does this include the option to type in something like notlazy as well as lazy? Sometimes WordPress just makes all images above the crease lazy load. Both setting should be an option to force it to select the option we want if the CMS gets it wrong.

#6 @swissspidy
4 weeks ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.