[wp-trac] [WordPress Trac] #58635: Images before main query loop are not counted towards lazy-loading threshold
WordPress Trac
noreply at wordpress.org
Wed Jul 5 21:16:23 UTC 2023
#58635: Images before main query loop are not counted towards lazy-loading
threshold
---------------------------------------------+--------------------------
Reporter: flixos90 | Owner: flixos90
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.3
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses: performance
---------------------------------------------+--------------------------
Comment (by flixos90):
I have tested this PR with Twenty Twenty-Three and Twenty Seventeen and
have verified that it works as expected. With an image in the header, and
3 images in post content, the 3rd post content image (4th image overall)
is lazy-loaded. Prior to the PR, none of the 4 images would have been
lazy-loaded because the header image wasn't counted towards the threshold.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58635#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list