Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ext-all.js VS ext-all-debug.js

What is the difference between using ext-all.js and ext-all-debug.js?

Does changing to ext-all.js from debug.js improve performance?

Can I assume that switching from debug to normal file will not have any other impacts on the application?

Also, can any one suggest what ext-base.js do?

like image 415
hop Avatar asked Aug 14 '11 08:08

hop


2 Answers

Ext-all is basically the minified verion of the debug one. The gain is that it greatly reduces the files size so that clients have to download less. Ext-base are the core functions of ext. If you only use those you could just include that file instead of the huge complete set in ext-all.

On the ext site there used to be a custom js builder where you would pick just the functions you need and it would create a custom js for you with just those modules

like image 128
Eddy Avatar answered Sep 21 '22 02:09

Eddy


Ext-all-debug is provided so that you can debug through the extjs code. It performs extactly the same operations that ext-all.js does. Using ext-all.js will improve performance since the size of the file is much smaller, hence clients can download and access them faster.

Same is the case with ext-base-debug and ext-base.js. These contain the operations on which ext-all.js depends on, for example Ajax operations. Interchanging these files will not have any effect on your application.

Use the ext-all-debug and ext-base-debug during development. Switch to ext-all.js and ext-base.js when in production.

like image 24
Varun Achar Avatar answered Sep 19 '22 02:09

Varun Achar