[wp-trac] [WordPress Trac] #59550: Attribute "loading" with value "lazy" is missing
WordPress Trac
noreply at wordpress.org
Thu Oct 5 14:27:06 UTC 2023
#59550: Attribute "loading" with value "lazy" is missing
--------------------------+-----------------------------
Reporter: r3dluke | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 6.3
Severity: major | Keywords:
Focuses: |
--------------------------+-----------------------------
Hello,
we just encountered an error with the wp_get_attachment_image() function.
Since version 6.3 the loading="lazy" attribute isn't present in the image
tag anymore.
We upgraded the versions one after another and detected a change with the
update on version 6.3. The documentation states "Defaults to 'lazy'" which
is wrong now. This is a serious issue for the performance of many sites
that rely on the default lazy loading behaviour by using
wp_get_attachment_image().
For testing this we just echoed the result of wp_get_attachment_image()
with an example static attachment ID from our media library.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59550>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list