伺服器將html或腳本輸出壓縮,用戶從伺服器取得數據後由瀏覽器解壓
壓縮數據傳輸實現方法:
apache mod_deflate
lighttpd compress module
最小化js檔案
http://crockford.com/javascript/jsmin
jsmin <fulljslint.js >jslint.js
http://developer.yahoo.com/yui/compressor/
Usage: java -jar yuicompressor-x.y.z.jar [options] [input file]
http://dojotoolkit.org/docs/shrinksafe