[wp-trac] [WordPress Trac] #56930: Block themes: improve omitting lazy-loading attribute on first content image/iframe

WordPress Trac noreply at wordpress.org
Sat Feb 11 07:04:29 UTC 2023


#56930: Block themes: improve omitting lazy-loading attribute on first content
image/iframe
-------------------------------------------------+-------------------------
 Reporter:  adamsilverstein                      |       Owner:  flixos90
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.2
Component:  Media                                |     Version:  5.9
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info                                   |  performance
-------------------------------------------------+-------------------------

Comment (by shahidul95):

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

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/3560

 === Environment
 * OS: macOS 12
 * Web Server: Nginx
 * PHP: 7.4.30
 * WordPress: 6.2-beta1-55292-src
 * Browser: Chrome 110.0.5481.77
 * Theme: Twenty Twenty-Three
 * Active Plugins:
   * No Plugins activated

 === Actual Results

 - ✅ Issue resolved with patch.
 - ✅ Header image doesn't have `loading="lazy"`
 - ✅ Featured image doesn't have `loading="lazy"`
 - ✅ First image (if no featured image added) doesn't have
 `loading="lazy"`
 - ✅ Footer image has `loading="lazy"`
 - ✅ Second image has `loading="lazy"`

 === Additional Notes
 Steps followed:
 - Activate the Twenty Twenty-Three theme.
 - Create a post with 2 core/image blocks.
 - On the same post, set a featured image. Save the post.
 - Go to the Site Editor and edit the Header and the Footer template parts.
 - Add 1 core/image block to each of the template part and save them.

 === Supplemental Artifacts
 After applying patch:
 - Header image without `loading="lazy"` - https://prnt.sc/1-YHOY9OhXX3
 - Featured image without `loading="lazy"` - https://prnt.sc/ymBJKmgWQNwe
 - First image (if no featured image added) without `loading="lazy"` -
 https://prnt.sc/asHcaWa6-Ctk
 - Footer image with `loading="lazy"` - https://prnt.sc/n1Jd0E4DiTf1

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


More information about the wp-trac mailing list