Thanks for clarifying Mika...please note Mika's comments. 

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mika Tuupola
Sent: Wednesday, July 16, 2008 11:59 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: "Uncompressed", "Minified and Gzipped" and "Packed"



On Jul 16, 2008, at 7:48 PM, Andy Matthews wrote:

> Packed takes the source code and runs it through an algorithmn which 
> compresses variable names, methods, code, etc into one big line of 
> javascript. You can find more information about it, and pack your own 
> code,
> here:
> http://dean.edwards.name/packer/
>
> Minified uses server side compression to further reduce the file size.
> Drawback of this method is that your server needs to be equipped to 
> offer this version, and the file needs to be de-compressed on the 
> client side.

Minifying does not use server side compression. Minifying means removing all
unnecessary characters from source code, without changing its functionality.

Minified JavaScript files are usually further packed by gzipping them.  
This is done on the fly by server. Apache comes with mod_deflate module by
default. This handles gzipping.

Packed files have to be uncompressed on client side too. While gzipped files
are uncompressed by browser natively, packed files are "uncompressed"
calling JavaScript eval() everytime page loads.

--
Mika Tuupola
http://www.appelsiini.net/


Reply via email to