[wp-trac] [WordPress Trac] #57548: Stop concatenating scripts and stylesheets in wp-admin and retire load-scripts.php and load-styles.php

WordPress Trac noreply at wordpress.org
Thu Sep 4 10:01:05 UTC 2025


#57548: Stop concatenating scripts and stylesheets in wp-admin and retire load-
scripts.php and load-styles.php
---------------------------+---------------------
 Reporter:  azaozz         |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  6.9
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+---------------------

Comment (by jonsurrell):

 I shared this ticket with some trusted performance folks @sergiomdgomes
 and @josephscott, I'll summarize their feedback here.

 Most results seem to indicate that ''concatenation remains beneficial'' in
 general. Tt hasn't been made obsolete by HTTP/2.

 A few additional links discussing the topic:

 - [https://blog.khanacademy.org/forgo-js-packaging-not-so-fast/ Forgo JS
 packaging? Not so fast]
 - [https://sgom.es/posts/2017-06-30-ecmascript-module-loading-can-we-
 unbundle-yet/ Browser module loading - can we stop bundling yet?]

 [https://youtu.be/p0lFyPuH8Zs?t=647 There's also "tight mode" discussed in
 this talk around 11 minutes:]

 > Chrome loads resources in 2 phases. “Tight mode” is the initial phase
 and constrains loading lower-priority resources until the body is attached
 to the document (essentially, after all blocking scripts in the head have
 been executed). In tight mode, low priority resources are only loaded if
 there are less than 2 in-flight requests at the time that they are
 discovered.

 -----

 It seems conclusive that concatenation is usually better for performance.
 Does anyone have evidence to the contrary?

 To move this forward, a different case needs to be made because it doesn't
 seem like "no performance benefit from concatenation" is valid.

 Do the benefits of ''not concatenating'' outweigs the drawbacks of
 degraded performance. Or in the contexts where concatenation is used (like
 the customizer view) is degraded performance irrelevant? Or is
 concatenation so buggy that it doesn't make sense to support it?

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


More information about the wp-trac mailing list