#50041 closed enhancement (duplicate)
Manually add loading=lazy in certain image tags loaded by WordPress
| Reported by: | superpoincare | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 5.5 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: |
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)
This ticket was mentioned in Slack in #core-media by antpb. View the logs.
6 years ago
#4
@
4 years ago
- Keywords close added; needs-patch removed
- Resolution → duplicate
- Status new → closed
That was fixed in this ticket: #52224
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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-includesdirectory: