views:

2073

answers:

2

Does anyone know the bare minimum files required for Ext JS 2.2? I know the ExtJS site has a feature to "build" a small version of ExtJS (ext.js) as a replacement for ext-all.js but that's for minimizing the size of ExtJS on the client. I'm interested in minimizing what's on the server. Currently the SDK comes with the following subdirectories:

ext-2.2/

adapter
air
build
docs
examples
resources
source

I think its pretty safe to remove examples, docs, and air. However, are there other things we can remove to make this smaller or is there a resource (besides the large javascript source code corpus) that documents the minimum required files?

+6  A: 

This link explains the include order What is the proper include order for my JavaScript files?

This is the minimum include set

<link rel="stylesheet" type="text/css" href="../extjs/resources/css/ext-all.css">
<script type="text/javascript" src="../extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../extjs/ext-all.js"></script>

The ext-all.css depends on files in ../extjs/resources/css so you should include that entire directory structure also.

So you'd need the following files at a minimum

  • extjs/resources/*/
  • extjs/adapter/ext/ext-base.js
  • extjs/ext-all.js

If you're not using Ext JS for any of the UI components then you don't need any of the stylesheets and supporting images, but in that case you'd have to question why you're usiing Ext JS since that's it's strong point.

methym
A: 

Ext Core
http://extjs.com/products/extcore/

Ballsacian1