[wp-trac] [WordPress Trac] #58302: Deprecate and disable the unused compression_test() and wp_ajax_wp_compression_test()

WordPress Trac noreply at wordpress.org
Fri May 12 18:47:43 UTC 2023


#58302: Deprecate and disable the unused compression_test() and
wp_ajax_wp_compression_test()
---------------------------+--------------------
 Reporter:  azaozz         |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  6.3
Component:  Script Loader  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+--------------------
 The functionality to test whether the web server compresses output was
 added 14 years ago (WP 2.8). At the time it wasn't a very common practice
 to compress web pages and assets on the server level, and compressing
 scripts and stylesheets in PHP was considered a good page load speed
 increase.

 Over the years this has changed. Now most (nearly all?) servers compress
 output, and compressing from PHP is considered "bad practice" as it is
 slower and consumes more resources. For that reason the compression of the
 (concatenated) scripts and stylesheets was removed from `load-scripts.php`
 and `load-styles.php` in [43580] about 4 years ago. Since then the above
 functionality has been unused.

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


More information about the wp-trac mailing list