I use this tool in my ajax modules based on your template.
The difference between JSCompress and Yui tool is quite simple:
JSCompress
"Compresses JavaScript source files by removing comments and unnecessary whitespace, which typically reduces the size by half and results in faster downloads and code that is harder to read."
Yui Compressor
"It starts by analyzing the source JavaScript file to understand how it is structured. It then prints out the token stream, replacing all local symbols by a 1 (or 2, or 3) letter symbol wherever such a substitution is appropriate ..."
For example:
_MyMethod: function(MyFirstLocal, MySecondLocal,MyThirdLocal){
MyFirstLocal = MyFirstLocal + 1;
MySecondLocal= MySecondLocal + 2;
MyThirdLocal= MyThirdLocal + 3;
}
Will become:
_MyMethod: function(a, b,c){
a= a+ 1;
b= b+ 2;
c= c+ 3;
}
naturally without withespaces and comments
Regards
Manzoni Fausto