Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the smallest ExtJS package?

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?

like image 841
fuentesjr Avatar asked Oct 18 '08 01:10

fuentesjr


People also ask

Is ExtJS any good?

Ext JS is a common choice for most enterprise-grade projects. Why? It allows you to save time on development and make the process easier, there are no compatibility issues, many multiplatform advantages, and you get great support services from Sencha.

What is requires ExtJS?

You can look at requires as a way to tell ExtJS: "When you construct an object of this class, please make sure to dynamically load the required scripts first".

Is ExtJS single page application?

Ext JS by Sencha is becoming the ExtJS is a rich, compelling and intuitive open source framework best suited for building single page applications. It offers very rich set of UI components and thus giving a tough competition to other JavaScript frameworks like AngularJS or ReactJS.


1 Answers

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 using Ext JS since that's it's strong point.

like image 52
pfeilbr Avatar answered Oct 02 '22 08:10

pfeilbr