After the JavaScript code in the front page is written, unlike the C language, which is compiled into machine code, as a scripting language, JavaScript is executed directly from the source file. Usually in order to save space, you can compress the code, remove the extra space and line wrapping, etc. (the code can be written all to one line, which is a bit like the C language). The same HTML,CSS code can also be used for such compression operations.
Full-Featured Online toolset: Tool.lu
Used to be the Tool.lu tool. Includes a full set of tools, especially the CSS tools, not only to do the same as other tools to maximize compression, but also can be purified operation, resulting in a convenient view of the changes, but also the size of the file format, the effect as shown.
Http://tool.lu
JavaScript compression which strong: css-js.cn
Today, the JavaScript code compression, found that the code after compression does not work properly, the online check, found that the reason is that the end of JavaScript can not write a semicolon, some compression tools cannot be properly processed, resulting in syntax errors.
Then found some JavaScript compression tool, find this tool is more useful, and the compression of the code than tool.lu compression results are much smaller, because it will do various processing of the code, including variable name substitution.
According to the introduction, the use of a dedicated JavaScript compression engine, rather than a simple string replacement, it seems to be a lot of reliable. Never thought before, this seemingly simple problem, also hidden mystery.
For example, the UGLIFYJS engine, a JavaScript compression tool written in node. JS, is currently the most popular JS compression tool, and JQuery is compressed using this tool.
http://www.css-js.cn
This article by jzj1993 Original, reprint please indicate source: Http://www.hainter.com/css-js-tool
CSS and JavaScript Online code compression tool recommended