[wp-trac] [WordPress Trac] #58211: Conditionally skip lazy-loading on images before the loop in classic themes

WordPress Trac noreply at wordpress.org
Sat May 20 08:05:26 UTC 2023


#58211: Conditionally skip lazy-loading on images before the loop in classic themes
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  high                                 |   Milestone:  6.3
Component:  Media                                |     Version:  5.9
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info needs-testing                     |  performance
-------------------------------------------------+-------------------------

Comment (by zunaid321):

 == Test Report
 This report validates that the indicated patch addresses the issue.

 Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress
 /wordpress-develop/pull/4424.diff

 === Environment
 - OS: Windows 11 (22H2)
 - Web Server: nginx/1.23.4
 - PHP: 7.4.33
 - WordPress: 6.3-alpha-55505-src
 - Browser: Chrome Version 113.0.5672.126 (Official Build) (64-bit)
 - Theme: Twenty Nineteen 2.5

 === Before Applying The Patch
 - Followed the instructions of @flixos90
 - ❌ **loading="lazy"** - does show up when inspecting the featured image

 === After Applying The Patch
 - Followed the same instructions
 - ✅ **loading="lazy"** - does not show up when inspecting the featured
 image

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


More information about the wp-trac mailing list