View Full Version : How to promote the reactive speed of loading JS file

17 Aug 2011, 11:39 PM
I have transformed my program to ExtJs4. But I find that the loading speed will slow down when there are lots of JS file, especially in MVC program . It there any coding skill to make this better?

18 Aug 2011, 12:04 AM
you can use 'Sencha SDK Tools ' to build the js files into one file
guide/getting_started (http://docs.sencha.com/ext-js/4-0/#/guide/getting_started)

or In the development environment you You should probably use ext-all-debug.js:)

18 Aug 2011, 6:05 PM
Thanks, I will follow it. And can the "jsbuilder " plugin make js files together?

18 Aug 2011, 9:58 PM
If you use the SDK and Ext.application({...}); the SDK put every class you use in one single JS file both Ext classes and self-defined classes.
It generates one debug file with comments and one minified version.

using the sdk speeds up my app from more than 10 seconds of loading to not more than 2 seconds.

good luck :)