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

WordPress Trac noreply at wordpress.org
Sun Jul 24 09:25:03 UTC 2022


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

Comment (by audrasjb):

 Hello and welcome to WordPress Core Trac!

 Thank you for opening this ticket and sorry to hear that you have issues
 with your WordPress installation.

 It is very unlikely that this kind of option will be added in the
 interface, because if we do that, so all the features should also have an
 enabling/disabling option. This would be against the WordPress philosophy:
 https://wordpress.org/about/philosophy/#decisions.

 But when that kind of feature is released, the WordPress Core team always
 provide a technical way to disable it. Lazyload can be disabled entirely
 with 3 lines of PHP. And plugin authors are welcome to create plugins to
 handle that. It is really easy to find a plugin for disabling lazyload in
 the plugin repository. These plugins generally doesn't load more than a
 few lines of PHP, so this is not a problem to use it to disable a feature
 you don't want.

 Replying to [comment:2 Pierreto]:
 > And google page speed:
 > "The Largest Contentful Paint image had a delayed load
 > Images above the waterline that have a delayed load are rendered later
 in the page lifecycle, which can delay Largest Contentful Paint.
 > "loading="lazy"

 This issue has been addressed in ticket #53675 (WordPress 5.9): "Omit
 lazy-loading attribute on first content image/iframe".

 A devnote has even been published to explain how it works:
 https://make.wordpress.org/core/2021/12/29/enhanced-lazy-loading-
 performance-in-5-9/

 The issue is probably that your theme doesn't handle it properly. Do you
 reproduce the issue with a bundled theme?

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


More information about the wp-trac mailing list