PDA

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



pinid
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.

Pini

tvanzoelen
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.

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

tvanzoelen
6 Dec 2011, 4:01 AM
http://www.sencha.com/products/sdk-tools/

pinid
6 Dec 2011, 4:07 AM
Thanks