Make WordPress Core

Opened 12 months ago

Last modified 11 months ago

#51856 new defect (bug)

loading="lazy" attribute bug

Reported by: lovor Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.5.3
Component: Media Keywords: needs-patch
Focuses: template Cc:


Adding of loading="lazy" attribute cannot be prevented; even when placing

add_filter( 'wp_lazy_loading_enabled', '__return_false' );

in functions.php. Further, loading="lazy" is added to all images, event to images in page templates (e.g. header.php), which already have loading="eager" attribute.

Change History (2)

#1 @SergeyBiryukov
12 months ago

  • Component changed from General to Media

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

11 months ago

Note: See TracTickets for help on using tickets.