[wp-trac] [WordPress Trac] #54018: Allow scripts registered via block.json to be enqueued in the footer

WordPress Trac noreply at wordpress.org
Thu Jul 20 21:25:16 UTC 2023


#54018: Allow scripts registered via block.json to be enqueued in the footer
---------------------------+--------------------------
 Reporter:  jeremyfelt     |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  6.4
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  performance
---------------------------+--------------------------

Comment (by westonruter):

 I think this will be closed once
 [https://github.com/WordPress/gutenberg/pull/52536 gutenberg#52536] is
 merged and backported to core. With it, all block view scripts are marked
 as `defer` but they remain in the `head` to promote early discovery. I
 don't think we need to provide a way to further customize how the block
 view scripts are printed via `block.json`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54018#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list