[wp-trac] [WordPress Trac] #11453: Use compression for CSS and JS file output

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 17 12:00:31 UTC 2009


#11453: Use compression for CSS and JS file output
-----------------------------+----------------------------------------------
 Reporter:  micasuh          |       Owner:                              
     Type:  feature request  |      Status:  new                         
 Priority:  normal           |   Milestone:  3.0                         
Component:  Optimization     |     Version:  2.9                         
 Severity:  normal           |    Keywords:  css, js, minify, compression
-----------------------------+----------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:8 novasource]:
 > re: concatenation--will Google's scheme include # of HTTP requests in
 the speed factor?

 Reducing the number of assets that are downloaded per page load
 significantly adds to the end user's experience. It makes the page load
 faster.

 (Also, the primary benefit of placing static assets on a CDN that lives on
 a separate domain name, is to place these assets closer to the end-user,
 without him sending cookie headers.)

 Replying to [comment:9 micasuh]:
 > Replying to [comment:8 novasource]:
 > > Denis-de-Bernardy is correct about minify if it consumes a lot of CPU.
 Have to analyze on cost-benefit. At least on hosts like Dreamhost, lots of
 minify could push high volume sites into mandatory private virtual host
 mode.
 > This is mostly true if visitors are downloading on-the-fly minified
 files. I don't think anyone is recommending this. While minifying files
 can add increased CPU load, if done right this increase should be very
 minimal.

 The main point I'd like you to understand is that asset concatenation,
 followed by conditional gzipping using mod_deflate, are low hanging fruits
 that are fast to generate, and easy to implement. The other two (PHP-level
 gzipping and minifying) are much less so, and they're prone to introducing
 more trouble than benefits.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11453#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list