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

WordPress Trac noreply at wordpress.org
Tue May 11 17:47:06 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 hellofromTonya):

 Replying to [comment:32 SergeyBiryukov]:
 > Would it make sense to rename `should_load_separate_core_block_assets()`
 to match that for consistency? That would be:
 >
 > * The `wp_should_load_separate_core_block_assets()` function.
 > * The `should_load_separate_core_block_assets` filter.

 Yes, I agree with you, Sergey. Renaming here is consistent with existing
 patterns and aids in improving readability.

 [https://core.trac.wordpress.org/attachment/ticket/50328/50328.3.patch
 Patch 50328.3.patch] applies your suggests.

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


More information about the wp-trac mailing list