[wp-trac] [WordPress Trac] #59550: Attribute "loading" with value "lazy" is missing

WordPress Trac noreply at wordpress.org
Thu Oct 5 16:32:44 UTC 2023


#59550: Attribute "loading" with value "lazy" is missing
-------------------------------+------------------------------
 Reporter:  r3dluke            |       Owner:  joemcgill
     Type:  defect (bug)       |      Status:  reviewing
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  6.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by joemcgill):

 * keywords:   => reporter-feedback
 * owner:  (none) => joemcgill
 * status:  new => reviewing
 * severity:  major => normal


Comment:

 Hi @r3dluke, welcome to Trac. There have indeed been intentional changes
 to the way WordPress applies lazy loading to images since 6.3. For a full
 explanation of the changes, you can see
 https://make.wordpress.org/core/2023/07/13/image-performance-enhancements-
 in-wordpress-6-3/.

 Thank you for pointing out the confusion with the documentation for
 `wp_get_attachment_image()`. You are correct that this is now not always
 accurate, depending on the context for which that function is called.

 To better understand whether you are experiencing unexpected behavior, it
 would be useful to better understand the context where you are using that
 function and expecting lazy loading to automatically be applied.

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


More information about the wp-trac mailing list