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

WordPress Trac noreply at wordpress.org
Thu Jul 15 23:57:43 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:
 Severity:  normal       |   Keywords:  needs-patch needs-unit-tests
  Focuses:  performance  |
-------------------------+------------------------------------------
 Per [https://web.dev/lcp-lazy-loading/ this web.dev article], lazy-loading
 elements above the fold can lead to slight regressions in the Largest
 Contentful Paint metric. Since WordPress core by default lazy-loads every
 image and iframe, this also includes those in the initial viewport which
 has shown to impact LCP in the field at scale. After analyzing the
 situation of the current core implementation and the theme ecosystem (see
 [https://make.wordpress.org/core/2021/07/15/refining-wordpress-cores-lazy-
 loading-implementation/ this post]), it is worth refining the default
 behavior of WordPress, in order to provide a solid default lazy-loading
 experience for the most common layouts (e.g. single column, hero image).

 Related: #50425

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


More information about the wp-trac mailing list