[wp-trac] [WordPress Trac] #50328: Enqueue script and style assets only for blocks present on the page

WordPress Trac noreply at wordpress.org
Wed May 12 11:14:37 UTC 2021


#50328: Enqueue script and style assets only for blocks present on the page
-------------------------------------------------+-------------------------
 Reporter:  aduth                                |       Owner:  gziolo
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.8
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests commit      |     Focuses:  javascript
  needs-dev-note                                 |
-------------------------------------------------+-------------------------

Comment (by gziolo):

 > Is the plan for it also to control scripts at some point? Otherwise,
 should it be updated to mention "styles" instead of "assets"?

 Yes, we definitely want to follow up with changes to how scripts are
 integrated. This is why we have a more general name. In practice, we have
 the first block that we hope to have integrated in time for WP 5.8 – File
 block.

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


More information about the wp-trac mailing list