[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
Wed Jan 25 02:11:00 UTC 2023


#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:  Future Release
Component:  Script Loader  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+----------------------------
 This functionality was added 14 years ago, #8628. At the time it made the
 loading of wp-admin quite faster by reducing the number of HTTP requests
 by more than 50%. The downside is that each wp-admin page has it's own set
 of concatenated scripts and stylesheets making them harder for caching in
 browser/network caches. Nevertheless the benefits of the reduced number of
 requests was greater than the insufficient caching.

 This changed when HTTP/2 became more popular. Scripts and stylesheets are
 loaded much more efficiently there and concatenation is generally not
 needed. This allows for better browser/network caching and for eventual
 prioritization. In that terms disabling concatenation of scripts and
 stylesheets in wp-admin would reduce complexity and improve performance in
 many cases.

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


More information about the wp-trac mailing list