View Full Version : Ext js 4 question regarding performance(minifying)

5 Dec 2011, 11:57 PM
Hi all,
I want to perform the following task (as it been proven in other applications I implemented to really get better performance)

1. Combine in the server side all the js files I need for the current page.
2. Minify it.
3. Inject a single js refrence to the page using <script> tag.

This way i will be able to save all the douzens of js requests to the server.
How do i perform this in Ext js, Since as far as I know each require statment or each first time loading will look for the file in the app/somedir/ structure.


6 Dec 2011, 3:54 AM
Use SDK tools to minify and bundle your classfiles. Load this package.

And read this about loading. http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Loader

I think simply load all your classes at once. Do not use thing as require and stuff.

6 Dec 2011, 3:56 AM
Can you specify which tool?

6 Dec 2011, 4:01 AM

6 Dec 2011, 4:07 AM