PDA

View Full Version : strategy for minimizing ext



lkasdorf
16 Aug 2007, 2:58 PM
I must have missed the discussion somewhere, but what is the approach to take to minimize how much of ext you load?

F'rinstance if I know that I'm not going to be using grid, can I somehow not include it? What if all I need is Ext.Ajax?

All I see is ext-all and ext-core, and debug versions of each.

Maybe I can just comment out things in ext-all.js. In fact, maybe thats why everything is 1 line? So I can comment a class out and it will not parse the rest of the line, and load fast.

But then it could be tricky commenting out classes that are used by classed that you need.

Am I on to something here? Did I answer my own question?

Gracias, all

evant
16 Aug 2007, 3:03 PM
Build your own Ext: http://extjs.com/download/build

brian.moeskau
16 Aug 2007, 3:39 PM
Or use JS Builder (http://code.google.com/p/js-builder/) to build only what you need.

lkasdorf
16 Aug 2007, 7:35 PM
Exactly what I was looking for- thanks. I tried the build your own- that is what I had in mind. That cut my size down about 3x.

Not looked into jsbuilder yet, but thx just the same.