Give Me a Five >>
<< Refresh on the IE widget break down the app
Try to zip the *.js file

Author Zhou Renjian Create@ 2004-07-24 11:31
whizz Note icon

Try to zip the *.js:
  1. trim all the indents
  2. remove all the /*...*/ comments
  3. remove all the // comments
  4. " = " -> "=", " + " -> "+", " * " -> "*", " / " -> "/", " > " -> ">", ...
  5. "}\n}" -> "}}"
  6. "} else " -> "}else "
  7. "} else {" -> "}else{"
  8. delete all the blank line
  9. trim the "{" and "}" in " if { (one expression); }"
 10. trim all the tab
 11. try to replace the variable's name into simple word, such as a, b, c, d, e, f, g, ...
 12
 
 ====
 It will save up to 30~40% of the bandwidth.

 

本记录所在类别:
本记录相关记录: