I used to find a program that compresses Javascript code. I have been using it all the time. It feels good.
Http://javascriptcompressor.com/
Online Javascript source code Compression
Only remove spaces, line breaks, unnecessary comments, etc. Especially when Shrink variables is selected, long variable names are reduced to variable names with a single letter, the compression ratio is usually 50% or even smaller. Nowadays, AJAX is widely used, and JavaScript files are getting bigger and bigger. Using this Compression should reduce the traffic burden. In addition, after the variable name is reduced, the program is not encrypted, but it will make the program very difficult to understand, to a certain extent, it can also protect the copyright.
Today I found another program to format the code.
Http://elfz.laacz.lv/beautify/
You can reformat the compressed JS Code to make it easy to read. Of course, if the variable name is reduced when javascriptcompressor.com is compressed, the original meaningful variable name cannot be restored.
When a JS file is particularly large, the browser reports that it takes too long to choose not to stop, and finally it can complete the execution.