Recommended CSS and JavaScript online code compression tools
After the JavaScript code on the front end of the web page is compiled, it is not compiled into a machine code in C language. As a script language, JavaScript is executed directly from the source code file. Generally, to save space, you can compress the code and remove unnecessary spaces and line breaks (the code can be written in one line, which is a bit like the C language ). Similarly, HTML, CSS, and other code can also be compressed.
Comprehensive online tool set: tool. lu
We have been using tool. lu. It includes a full set of tools, especially the CSS tools, which can not only perform maximum compression, but also perform purification operations like other tools, generate a format that is convenient to view and modify, and can take into account the file size, as shown in.
Http://tool.lu
JavaScript compression which is strong: css-js.cn
When javascript code is compressed today, it is found that the compressed code cannot run normally. I checked it online and found that the JavaScript end can be left blank with semicolons. Some compression tools cannot be aligned for correct processing, as a result, the syntax is incorrect.
So I found some JavaScript compression tools, and found that this tool is more useful, and the compressed code is better than the tool. the result of lu compression is much smaller, because it processes the code, including replacing the variable name.
According to the introduction, the dedicated JavaScript compression engine is used instead of simple string replacement, which seems to be much more reliable. I have never imagined that this seemingly simple problem is also a secret.
For example, the UglifyJS engine is a JavaScript compression tool written in Node. js and is currently the most popular JS compression tool. JQuery uses this tool for compression.
Http://www.css-js.cn
This article by jzj1993 original, reproduced please note Source: http://www.hainter.com/css-js-tool