[wp-trac] [WordPress Trac] #51856: loading="lazy" attribute bug

WordPress Trac noreply at wordpress.org
Mon Nov 23 20:56:47 UTC 2020


#51856: loading="lazy" attribute bug
--------------------------+-----------------------------
 Reporter:  lovor         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.5.3
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  template      |
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51856>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list