[wp-trac] [WordPress Trac] #55148: In block themes, styles should load in the head
WordPress Trac
noreply at wordpress.org
Fri Feb 11 17:49:50 UTC 2022
#55148: In block themes, styles should load in the head
--------------------------+-----------------------------
Reporter: oandregal | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.9
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
WordPress 5.8 introduced some logic to load some styles in the bottom of
the body for classic themes that opted-in into loading block assets
separately. For classic themes that didn't opt-in and block themes, the
styles should be loaded in the head.
Specifically, in https://core.trac.wordpress.org/ticket/53494 global
styles were set to do that. However, at some point during the WordPress
5.9 cycle, a regression was introduced that made block themes to have the
global styles in the body.
Similarly, block styles generated by WordPress dynamically (layout and
elements) should have been loaded following the same logic. Instead, these
are always loaded in the body.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55148>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list