[wp-trac] [WordPress Trac] #50425: Do not lazy-load images which are very likely to be in the initial viewport
WordPress Trac
noreply at wordpress.org
Thu Jun 18 19:16:17 UTC 2020
#50425: Do not lazy-load images which are very likely to be in the initial viewport
------------------------------------------+-----------------------
Reporter: flixos90 | Owner: flixos90
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.5
Component: Media | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------
Comment (by joemcgill):
`get_the_post_thumbnail()` is used extensively in places where the
featured image is not in the viewport, i.e., on archive pages or in places
where some UI is being creating using a secondary query, so we might want
to be more explicit in that case that it only loads when `is_single()` and
`is_main_query()` are both true.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50425#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list