[wp-trac] [WordPress Trac] #56927: Post Featured Image always lazy loaded in T22 and T23 Single template
WordPress Trac
noreply at wordpress.org
Fri Oct 28 16:16:17 UTC 2022
#56927: Post Featured Image always lazy loaded in T22 and T23 Single template
-----------------------------+------------------------------
Reporter: RavanH | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version: 6.1
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------------
Comment (by RavanH):
I do not see a way to prevent this from happening to a Post Featured Image
block used in a theme template, outside of the Loop like in the Single and
Page templates in T22 and T23.
Maybe the `core/post-featured-image` block needs a "loading" attribute
with matching "Loading" options "Default","Disabled","Lazy" and "Eager"?
This value can then be passed to `get_the_post_thumbnail()` overriding the
current loading attribute.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56927#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list