PDA

View Full Version : How ExtJS Loads its files



trojan
30 Dec 2008, 12:15 AM
Hi,

:-? I am wondering and trying to find the answer that we just include 2 js files of ExtJS (adapter/ext/ext-base.js and ext-all.js) thn how the functionality of all components of Ext become available for use.

Can anyone explain the way it works?

evant
30 Dec 2008, 12:42 AM
All of the code for Ext is inside ext-base and ext-all. That's pretty much all you need to know.

trojan
30 Dec 2008, 12:49 AM
evant,

Thanks for your response. I read both files (ext-base and ext-all) but i could not find all required code there, thats why i am asking this. Reason for this is to take a chance of reducing load time for any application.

Can you tell me how it really works?

Animal
30 Dec 2008, 12:58 AM
What code are you expecting to see?

All the code is there. The browser loads it because you put the <script src="...." statements into your document header.

jay@moduscreate.com
30 Dec 2008, 3:30 AM
wow, you can read that fast?

Condor
30 Dec 2008, 5:03 AM
I think you should read the tutorial on building Ext from source (http://extjs.com/learn/Tutorial:Building_Ext_From_Source) (you can build a file that only contains the parts you actually need and minify and compress the result).

iamleppert
5 Jan 2009, 10:52 PM
Supposed I have developed using ext-all.js and now I want to find out what parts of ext I can strip out. What would be the best way to go about that?

Condor
6 Jan 2009, 1:01 AM
It's a bit trial and error.

You should probably start with the Build Your Own (http://extjs.com/products/extjs/build/) page (it lists most dependencies).