[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 09:25:52 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 SergeyBiryukov):

 Thanks! I also noticed that the filter name and description suggests that
 it controls the behavior of both styles and scripts, however it only
 controls styles at the moment.

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

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


More information about the wp-trac mailing list