[wp-trac] [WordPress Trac] #54018: Allow scripts registered via block.json to be enqueued in the footer
WordPress Trac
noreply at wordpress.org
Thu Oct 16 23:10:04 UTC 2025
#54018: Allow scripts registered via block.json to be enqueued in the footer
-------------------------------------+-----------------------------
Reporter: jeremyfelt | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: Future Release
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: needs-refresh has-patch | Focuses: performance
-------------------------------------+-----------------------------
Changes (by westonruter):
* milestone: 6.9 => Future Release
Comment:
Thank you! Let's continue iterating on this for 7.0. For 6.9 we can at
least have core default to registering scripts with `fetchpriority=low`
(already done via #61734) and `in_footer=true` (in review via #63486).
Having the `block.json` being able to override these defaults will be
useful, but in the meantime this override can be done with PHP code after
the blocks are registered.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54018#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list