[wp-trac] [WordPress Trac] #52139: Twenty Twenty-One: Skip loading attribute on featured image instead of loading=eager
WordPress Trac
noreply at wordpress.org
Mon Dec 21 16:04:43 UTC 2020
#52139: Twenty Twenty-One: Skip loading attribute on featured image instead of
loading=eager
---------------------------+-----------------------
Reporter: flixos90 | Owner: flixos90
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.6.1
Component: Bundled Theme | Version: 5.6
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+-----------------------
Comment (by flixos90):
Lazy-loading an image in the initial viewport can have a negative impact
on the Largest Contentful Paint Metric (also see https://web.dev/browser-
level-lazy-loading-for-cmss/#avoid-lazy-loading-above-the-fold-elements).
The change made in this ticket doesn't affect that though: The image not
being lazy-loaded is maintained, it's only about the implementation, where
passing `loading="eager"` is discouraged for the reason outlined in the
description.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52139#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list