Community
Participate
Working Groups
In the past, we have used Dojo Shrink Safe to compress our generated JavaScript code during deployment. We should implement something similar in EDT to remove white space, reduce the amount of text being sent over the wire, and obfuscate a users source code.
May need a CQ to use Dojo Shrink Safe. Jimmy, please take care of this.
updated subject to differentiate it with gzip HTTP. Set this to I1
I have opened the following CQ for distributing ShrinkSafe with EDT - http://dev.eclipse.org/ipzilla/show_bug.cgi?id=5944
Created attachment 209261 [details] Patch Here is a patch for this. Tony, could you help review it. Thanks. It's pending on the CQ now.
The API for ShrinksSafe has changed with the latest version, which should be downloaded from here - http://download.dojotoolkit.org/current-stable/dojo-release-1.6.1-shrinksafe.zip (This can only be committed when our CQ is approved) The 1.7R1 version of js.jar should be downloaded from here - ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R1.zip (Again, this can only be committed when our CQ is approved). Do we still think we need a VMArg to disable compression? That was only added in RBD in case we found a need to turn it off. Will the edt_runtime_all.js file be compressed with this patch?
(In reply to comment #5) > The API for ShrinksSafe has changed with the latest version, which should be > downloaded from here - > http://download.dojotoolkit.org/current-stable/dojo-release-1.6.1-shrinksafe.zip > (This can only be committed when our CQ is approved) > > The 1.7R1 version of js.jar should be downloaded from here - > ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R1.zip (Again, this can only > be committed when our CQ is approved). > > Do we still think we need a VMArg to disable compression? That was only added > in RBD in case we found a need to turn it off. I think we can leave it there now, in case the shrink breaks any thing. > > Will the edt_runtime_all.js file be compressed with this patch? Yes, the edt_runtime_all.js file should be compressed. But the patch didn't process it, I will fix it. Thanks.
Move this to I2, as the CQ can not get done in I1. Thanks.
Hi Brian, is the CQ for ShrinkSafe done? Can I proceed this enhancement now? Thanks a lot.
The CQ is not ready.
The CQ has been approved for RHINO - http://dev.eclipse.org/ipzilla/show_bug.cgi?id=5960
Hi Brian, The CQ for RHINO was passed, is the CQ for ShrinkSafe passed? Thanks.
Yun Feng, you are right, the Shrinksafe CQ is still not accepted (http://dev.eclipse.org/ipzilla/show_bug.cgi?id=5944).
[CQ 5944] Dojo Shrinksafe Version: 1.6.1 has been approved for commit to CVS.
Will you be able to check this code in by Friday?
I will get the patch in today. Thanks a lot.
Created attachment 211978 [details] Patch Here is the patch I checked in. Thanks.
Patch is in now. Resolved this one. Thanks.
close