[wp-trac] [WordPress Trac] #58681: No lazy loading attribute on images in gallery
WordPress Trac
noreply at wordpress.org
Tue Jul 11 13:57:11 UTC 2023
#58681: No lazy loading attribute on images in gallery
---------------------------------------------+--------------------------
Reporter: spacedmonkey | Owner: joemcgill
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3
Component: Media | Version: 5.5
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: performance
---------------------------------------------+--------------------------
Changes (by joemcgill):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"56214" 56214]:
{{{
#!CommitTicketReference repository="" revision="56214"
Media: Optimize images created in shortcodes.
This fixes an issue where images dynamically created during shortcode
rendering (e.g., shortcode image galleries), were not getting image
optimizations like `loading="lazy"` or `fetchpriority="hight"` applied.
Note that even after this commit, shortcodes are processed after the main
content images, which can affect the order in which optimizations are
applied in content areas.
Follow-up to [56037].
Props spacedmonkey, flixos90, thekt12, swissspidy, joemcgill.
Fixes #58681.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58681#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list