4 ms·
We used Yahoo's compressor for both JS and CSS ( http://developer.yahoo.com/yui/compressor/ http://developer.yahoo.com/yui/compressor/ ). An example of our Java
by amix 17y ago
We used Yahoo's compressor for both JS and CSS ( http://developer.yahoo.com/yui/compressor/ http://developer.yahoo.com/yui/compressor/ ). An example of our JavaScript can be seen here:
http://statics.plurk.com/5578b0a824368f9af6afa9dd6e8abf64.js http://statics.plurk.com/5578b0a824368f9af6afa9dd6e8abf64.js. You can see that not all the variables are converted, since Yahoo's compressor is very conservative and won't change functions or global objects names.
This was the best available option at the time we wrote Plurk. We will take a look at Google Clouse Compiler, thanks.