News for hackers. Stuff that matters.
Re:Security concerns with minified JavaScript code by ryanolsonx on Monday August 31, 2015 @03:13PM (#10148492)
I think the main reason that it's a best practice for people to minify their JavaScript files is for a smaller download size for the client. With a smaller download size, the page is able to utilize JavaScript at an earlier point and be ready for the user to interact with the page. Minifying and gzipping JavaScript yields a greatly smaller file size than without either. Big win for performance.
Re:Security concerns with minified JavaScript code by noamyoungerm on Monday August 31, 2015 @03:53PM (#10148704)
While it is true that in practice, the size benefit of both compressing and minifying is optimal, the LZ77 algorithm is nearly the same as a minification algorithm, so running both has only marginal benefit.
Re:Security concerns with minified JavaScript code by DanBC on Monday August 31, 2015 @03:15PM (#10148510)
Just checking: are you saying that minifying and gzipping is better than gzipping alone? Where better means smaller downloads for the client?
Re:Security concerns with minified JavaScript code by blacksmith_tb on Monday August 31, 2015 @05:54PM (#10149315)
I read that to mean that gzip / deflate was nearly as effective, and so there was not much reason to minify if you were already compressing.