[wp-hackers] JavaScript concatenation and compression - any documentation?

Ken Newman Ken at adcSTUDIO.com
Fri Dec 18 21:54:20 UTC 2009

See this post for more information: 

"Another major new feature is that all core admin scripts are 
concatenated and compressed before sending them to the browser. This 
feature can easily be extended to include scripts added by plugins and 
to use server side caching, however that would require some changes to 
the server settings (.htaccess on Apache).

Since compression from php can be problematic on some hosts there are 
several "switches" (constants) that manage it: 
|define('CONCATENATE_SCRIPTS', false);| would turn off both 
concatenating and compressing of all scripts."

hope that's more helpful ;)

On 12/18/2009 4:43 PM, Davit Barbakadze wrote:
> What does it mean it can't be turned on? I've been asking whether
> concatenation is already turned on (for only core scripts) by default?
> On Fri, Dec 18, 2009 at 11:36 PM, Andrew Nacin<wp at andrewnacin.com>  wrote:
>>> Is it turned on by default for my plugins and themes?
>> No. It can't be turned on, period. Two versions of core scripts are
>> committed the core -- a development version, and a compressed version
>> created by core developers using YUI. The compressed version is used unless
>> a debug constant is set in wp-config.php. The core only concatenates core
>> scripts.
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list