#51856 closed defect (bug) (worksforme)
loading="lazy" attribute bug
| Reported by: | lovor | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Media | Version: | 5.5.3 |
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: | template |
Description
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 (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Can't reproduce, I tried to add the filter in a mu-plugin for example, and the lazy load attribute was properly removed.