Does Jquery.com show Minified and Gzipped versions as 19KB?
Production (19KB, Minified and Gzipped) Development (120KB, Uncompressed Code)
but when we click on download for the Production version. he follows this link
http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.3.2.min.js&downloadBtn=
and the file on this page is 55.9 KB. Why jquery.com shows Production (19KB, Minified and Gzipped)
The size of the unpacked file is 55.9 KB. This is the result of minimization, which is the abbreviation of variable names, the removal of white space, etc.
gzip, . gzipped , 55,9 , JS.
zip gzip, , , gzipped , , . . , gzipped, " " - Firefox.
19KB Minified jquery?
% wget http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js % gzip jquery-1.3.2.min.js % du -b jquery-1.3.2.min.js.gz 19716 jquery-1.3.2.min.js.gz
JQuery minified. , - gzipping . mod_deflate, () .htaccess:
# compress all text & html: AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-javascript application/javascript text/css .php # Or, compress certain file types by extension: <Files *.html> SetOutputFilter DEFLATE </Files>
This ensures that your files are downloaded to the browser. You can use the webdeveloper toolbar to check sizes.
For this in IIS follow this tutorial