CSS and JavaScript online code compression tools recommended, cssjavascript

Source: Internet
Author: User

CSS and JavaScript online code compression tools recommended, cssjavascript

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

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.