CSS and JavaScript Online code compression tool recommended

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.