Compression of JavaScript programs
bitsnbites.eu
Compression of JavaScript programs
1–7 of 7 posts
Re: Compression of JavaScript programs
#2Sure there are browsers that can't decompress these streams, but your webserver already knows when to send the full (but minified) JS instead. Its all handled automatically.
Re: Compression of JavaScript programs
#3----
[1] http://timepedia.blogspot.com/2009/08/on-reducing-size-of-co...
[2] http://code.google.com/p/google-web-toolkit/source/detail?r=...
Re: Compression of JavaScript programs
#4cough your server could serve gzipped stream and the browser would transparently uncompress it. Sure there are browsers that can't decompress these streams, but your webserver already knows when to send the full (but minified) JS instead. Its all handled automatically.
Re: Compression of JavaScript programs
#5A document [1] by Ray Cromwell introduces an aid for JS compression, both theory and implementation [2]. The idea is to transform JS code before compression in a way that, while keeping JS semantics, makes is best possible candidate for the popular gzip deflate compression. ---- [1] http://timepedia.blogspot.com/2009/08/on-reducing-size-of-co... [2] http://code.google.com/p/google-web-toolkit/source/detail?r=...
I thoroughly recommend taking the time to read it.
Re: Compression of JavaScript programs
#6cough your server could serve gzipped stream and the browser would transparently uncompress it. Sure there are browsers that can't decompress these streams, but your webserver already knows when to send the full (but minified) JS instead. Its all handled automatically.
Re: Compression of JavaScript programs
#7"The packed versions require non-trivial client-side processing time to uncompress (unpack) the code whereas the minified versions do not."