[wp-trac] [WordPress Trac] #56273: Disable lazy load

WordPress Trac noreply at wordpress.org
Sat Jul 23 04:15:14 UTC 2022

#56273: Disable lazy load
 Reporter:  Pierreto         |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  6.0
 Severity:  normal           |   Keywords:
  Focuses:                   |

 Like many here, I would like to deactivate the lazy load and I am sad that
 new functions are imposed on us that lower the page speed score and that
 we have to waste time each time to find a solution to deactivate it.
 Maybe there is a real intention to harm those who are not programmers.

 Finally, like the others, I used the solution that doesn't work anymore.

 As far as I understand, we have to add this code in function.php of the
 template to disable again this damn lazy load.

 function skip_lazyloading_on_first_three_archive_images( $omit_threshold )
     if ( is_home() || is_archive() ) {
         return 3;
     return $omit_threshold;
 add_filter( 'wp_omit_loading_attr_threshold',
 'skip_lazyloading_on_first_three_archive_images' );

 Why not create a checkbox to enable or disable the lazy load in the
 wordpress settings?

 Or maybe someone will have to create a plugin to disable one of the new
 useless or complicated function like "classic editor", classic widger",
 classic no lazy load ?

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

More information about the wp-trac mailing list