frederic schrieb: > Hello, > You can obfuscate your JS code with this tool : > http://dean.edwards.name/weblog/2006/12/packer-php/ > A Python version seems working, have you planned to integrate this feature > in Qooxdoo ? > The original script is under LGPL > http://creativecommons.org/licenses/LGPL/2.1/ > > best regards. > frederic > > Hi frederic,
qooxdoo already has obfuscation and packing functionality. If you take a look at the sample.js in the sample/build folder, which includes all qooxdoo classes, you see that it has a size of about 1MB but the size of all qooxdoo JavaScript files combined are over 2.4 MB. So the compression ratio for the framework is pretty good. Further if you look at the code with all optimizations enabled (default for make build) it should already be hard to read. Question? Who can tell me how this function works? ;-) createNamespace:function($0,$1){var $2=$0.split($[5]); var $3=window; var $4=$2[0]; for(var $5=0,$6=$2.length-1;$5<$6;$5++,$4=$2[$5]){if(!$3[$4]){$3=$3[$4]={}; }else{$3=$3[$4]; }}{}; $3[$4]=$1; return $4; } I think we don't have a real need to use Dean Edwards packer. Maybe we can look how it works and add some of it's optimizations to our generator. Have fun, Fabian ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel