[wp-trac] [WordPress Trac] #58560: Performance issues with `wp_common_block_scripts_and_styles`

WordPress Trac noreply at wordpress.org
Fri Jun 16 13:35:26 UTC 2023


#58560: Performance issues with `wp_common_block_scripts_and_styles`
---------------------------+----------------------------
 Reporter:  spacedmonkey   |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Future Release
Component:  Script Loader  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  performance    |
---------------------------+----------------------------
 In function `wp_common_block_scripts_and_styles` is bad for performance.
 This is because it does a lot of file operations. Uses `glob` and
 `file_get_contents`. This does this for styles are may not even be loaded
 on a page.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58560>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list