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

WordPress Trac noreply at wordpress.org
Mon Jun 26 22:39:55 UTC 2023


#58560: Performance issues with `wp_common_block_scripts_and_styles`
--------------------------------------+---------------------------
 Reporter:  spacedmonkey              |       Owner:  spacedmonkey
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  6.3
Component:  Script Loader             |     Version:  5.0
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+---------------------------

Comment (by flixos90):

 Thanks @spacedmonkey for looking into this. I also ran a set of benchmarks
 and can confirm a notable performance impact, which makes this worth
 considering even this late in the cycle. The numbers I see are even more
 impactful, resulting in a crazy **35% performance improvement** (`wp-
 total` metric) when using TT2. I can also confirm that this performance
 improvement only applies to block themes that have theme support for "wp-
 block-styles".

 [https://docs.google.com/spreadsheets/d/1mSSMdvzNxBoepC54MR4sNBcnQCutL8NnRKFRkacjHl4/edit
 See this spreadsheet for the full benchmarking results.]

 With that said, I am personally not familiar and comfortable enough with
 the underlying logic to approve the PR by myself. It would be great to
 have someone else more familiar with the underlying logic review. Maybe
 @noisysocks @oandregal?

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


More information about the wp-trac mailing list