[wp-trac] [WordPress Trac] #53675: Omit lazy-loading attribute on first content image/iframe

WordPress Trac noreply at wordpress.org
Fri Jul 16 08:53:20 UTC 2021


#53675: Omit lazy-loading attribute on first content image/iframe
------------------------------------------+------------------------------
 Reporter:  flixos90                      |       Owner:  flixos90
     Type:  enhancement                   |      Status:  assigned
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Media                         |     Version:  5.5
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  performance
------------------------------------------+------------------------------

Comment (by Mte90):

 Just because of thinking, the various website I manage with different
 themes and plugins.
 I think that the best idea should be something like a global that track
 how many executions of  (as example) `wp_get_attachment_image` and on
 first element doesn't add that parameter.
 With adding a filter to disable that behaviour.

 I know that a global is not the best thing but in this way is more
 granular in all the website without asking every developer from blocks to
 theme developers.

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


More information about the wp-trac mailing list