Re:Some analysis of the 1M most popular sites on the web
by anantzoid on Friday July 24, 2015 @01:48PM
(#9943823)
Minifying your JS and CSS files is a very good practice as it's not only secure, but also is compact. Grunt is a very powerful tool that does this.
[ Parent
| on HN ]
Re:Some analysis of the 1M most popular sites on the web
by cbsmith on Friday July 24, 2015 @03:35PM
(#9944615)
> Minifying your JS and CSS files is a very good practice as it's not only secure, but also is compact.
If you think you gain much in terms of compactness, you might not understand how the subsequent gzip compression works. ;-) There may well still be a gain, but it won't be significant.
Re:Some analysis of the 1M most popular sites on the web
by jwr on Saturday July 25, 2015 @03:53AM
(#9946931)
I wish more people understood how Google Closure advanced compilation works. It's not just minification. See https://developers.google.com/closure/compiler/docs/compilat...
Re:Some analysis of the 1M most popular sites on the web
by pyre on Friday July 24, 2015 @02:21PM
(#9944094)
As an example, on a previous project all of the javascript libraries + the app concatenated together at 3MB. Minification with uglify reduced the size to 1.5MB and using Gzip compression further reduced the transfer size to ~800K.