[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 08:11:35 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 reduanmasud):

 == 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 11
 * Web Server: Nginx
 * PHP: 7.4.30
 * WordPress: 6.2-beta1-55292-src
 * Browser: Chrome 110.0.5481.77
 * Theme: Twenty Twenty-Two
 * Active Plugins:
   * No Plugins activated

 === Actual Results

 - ✅ Issue resolved with patch.
 - ✅ Header image without `loading="lazy"`
 - ✅ Featured image without `loading="lazy"`
 - ✅ When post has no featured image - first image without
 `loading="lazy"`
 - ✅ Second image with `loading="lazy"`
 - ✅ Footer image with `loading="lazy"`

 === Additional Notes
 Followed steps provided above.
 - Activate the Twenty Twenty-Two 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://i.imgur.com/5HFOk7G.png
 - Featured image without `loading="lazy"` -
 https://i.imgur.com/bm5esmI.png
 - First image (if post has no featured image) without `loading="lazy"` -
 https://i.imgur.com/J3VZaqt.png
 - Second image with with `loading="lazy"` -
 https://i.imgur.com/qVeSkFB.png
 - Footer image with with `loading="lazy"` -
 https://i.imgur.com/iq1GnW6.jpg

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


More information about the wp-trac mailing list