After the publication of the article on the subject of archiving JS / CSS files for the subsequent distribution to the client, I thought about what the minify method should be used. The report at the ClientSide'2007 conference failed to establish a clear criterion of how and what is the best way to compress JavaScript files. This article is devoted to the consideration of just this problem.
Task
As a research goal, the analysis of all known means of static minimization of JavaScript code was fixed, after which it was necessary to answer three basic questions: ')
Does it make sense to use any JS code minimizer?
Are among them a universal remedy that shows the best results in the vast majority of cases?
If there is no such tool, then what are the criteria for using the toolkit?
So, with the formulation of the problem figured out. Now let's consider, in fact, the tools themselves and the graphics of the degree of compression of the source code.