View Full Version : About size

8 Jul 2010, 11:07 PM
I mentioned that in examples of ExtJS size is about 200 kb.
How come?
My code is about 800 kb.
Could you be so kind to learn me so minimaze code.
The matter is so taht when I tell ExtJS is about 800kb my employee tell me NO.

8 Jul 2010, 11:13 PM
This is ext-all-debug.js (readable) vs. ext-all.js (compressed). You can get it even smaller by using GZIP.

8 Jul 2010, 11:25 PM
But I use ext-all.js and that is over 661 kb.

9 Jul 2010, 12:07 AM
What about when your HTTP server GZIPs it?

9 Jul 2010, 12:17 AM
I already tried to unstand about gzip but didn't.
If I write something wrong please forgive me I don't understand all right because I'm not good
at English.

9 Jul 2010, 12:51 AM
Maybe extjs uses the function, they provide when you want to download the framework... you can choose which kind of feature you want to have. If you don't need all of them, you could delete it and so it will be smaller...

27 Oct 2010, 5:34 AM
Excuse me for again question, but I still do not understand how come.

For example at this page http://dev.sencha.com/deploy/dev/docs/
ext-all.css is 21 KB
xtheme-gray.css is 5.7 KB
ext-base.js is 12.2 KB
ext-all.js is 181.8 KB

How is it come?
I did't see any notice of gzip or somethig like this.
You know when my emploeer knows that I am going to include over 800 KB most of them refused.
Please help me understand how I should inlude ExtJS right that size will be so little.

27 Oct 2010, 7:11 AM
gzip See Content-Encoding header in response:


27 Oct 2010, 7:23 AM
Thanks I understand it.
I look at this in Chrome.
But in Firebug I didn't find it.

SO I should learn how to use gzip.
But is it possible to use ways
like this
<link rel="stylesheet" type="text/css" href="http://dev.sencha.com/deploy/dev/docs/resources/css/ext-all.css" />
<script type="text/javascript" src="http://dev.sencha.com/deploy/dev/docs/resources/ext-base.js"></script>
<script type="text/javascript" src="http://dev.sencha.com/deploy/dev/docs/resources/ext-all.js"></script>

That don't care about gzip.
Cause I don't undestand how to use start use gzip on server.

27 Oct 2010, 7:36 AM
I learned ))))


Thanks to all.

27 Oct 2010, 8:39 AM
gzip See Content-Encoding header in response:

I can also build my extjs to only include the modules I require correct ?
or is that no longer an option ?

27 Oct 2010, 9:23 AM
Yes, with jsbuilder, you can only build in what you need.

If it were a problem for us at work, we could remove all charting. But it's a single page app and ext-all.js is cached, so our users do not have any problem.

27 Oct 2010, 10:40 AM
Same here, it's a intranet app, so the download is a one time expense for a daily used app.
so the cost of building a custom extjs is not warranted.

I would see for an internet app doing a custom build would be very sensible being as 80% of the apps out there only use forms and grids.