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

WordPress Trac noreply at wordpress.org
Tue Feb 15 07:23:23 UTC 2022


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

Comment (by gziolo):

 It’s worth noting that @adamsilverstein has just opened a proposal to
 extend script loading strategies in WordPress/performance#168. Let’s make
 sure that the solution proposed takes that into account.

 Another consideration is support for multiple scripts per type in
 block.json as discussed in
 https://github.com/WordPress/gutenberg/issues/33542. @aristath started
 working on that already. We already allow passing an array for styles. The
 same is planned for all 3 types of scripts.

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


More information about the wp-trac mailing list