View Full Version : minimize ext-all.js

13 May 2009, 6:51 AM

I just discovered this nice "build your own exjts" form:


Is there already something similar for the 3.0 version?



13 May 2009, 7:04 AM
You're a premium member, so you can build Ext 3.0 from SVN (http://extjs.com/learn/Tutorial:Building_Ext_From_Source).

13 May 2009, 9:28 AM
or you can wait until Ext JS 3.0 stable is released.

16 May 2009, 11:29 AM
thanks for your replies at first.

I just tried the JS builder. I got the source from the svn repository tags/ext-3.0-rc1.1 and deployed resources, sources and examples. (all boxes checked)

Then I compared it with the standard Ext JS 3.0 RC1.1 SDK download package.
My ext-all.js has a size of 669 KB.
The standard download ext-all.js has 585 KB.

Why is my file bigger? Shouldnt it be the same size after using JS builder?
It was used JSMin for the standard download ext-all.js, right?
I thought it is probably because of bugfixes, which make it bigger?

Afterwards I used the YUI Compressor Online ( http://yui.2clics.net/ ) on the ext-all.js
Compression ratio : 10% , original size 669 KB , final size 600 KB.
So it is still a bit bigger..

Then I alternatively used ShrinkSafe Online (http://shrinksafe.dojotoolkit.org/) on the ext-all.js
Original size 669 KB, final size 4 KB
But then it says Ext.onReady is not a function on my website.
So the code must be damaged ?!

How do you usually proceed when minifying your code? Shrinksafe doesnt seem to be an option ?!

Thx for answers,


20 Jul 2009, 11:16 AM
any word on the Build Your Own for 3.0?