3 ms·
cough your server could serve gzipped stream and the browser would transparently uncompress it. Sure there are browsers that can't decompress these streams, bu
by willvarfar 16y ago
cough 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.
- nrkn 16y agoHe mentions "small source size" competitions as one of the reasons for doing this and they all count the size of the raw js file, not the size of the gzipped file as sent by the server.
- dspillett 16y ago"Minifying" will still produce generally lower bandwidth use with automatic stream compression, and you get a significant benefit even for users who have broken browsers (or are stuck behind broken proxies) that don't support stream compression.