On Tue, Feb 24, 2009 at 4:16 PM, rasit <rasitoz...@gmail.com> wrote: > > Hi, all! > Homepage of JQuery says that JQuery is 19 KB (minified)
Actually if you look closely it says Minified and Gzipped. The minified part takes it from 120KB to 55KB. The gzipping part takes it from 55KB to 19KB, but is undone by your web browser automatically by the time you save the file. > , but download > link goes to a file which is 55 KB. Does it need to be compressed? If > yes, how can I compress it? Minified, it's ready to be gzipped by a webserver. As far as how to have your server do that, that depends on what web server you're using, but most have some option to enable gzipping based on mime-type (ex. http://www.google.com/search?q=gzip+javascript+apache ). This typically happens on-the-fly, meaning you place the 55KB (minified but uncompressed) version on the server and it delivers the 19KB version to the browser. Such a configured server will also handle the negotiating with the client to make sure it can accept the gzipped version before sending it, falling back to uncompressed if not (though there is quite good support for gzipping in web browsers, even much older versions). - Richard