PDA

View Full Version : First iphone's application!



farid moussa
21 Apr 2011, 6:29 AM
Hi,

I made my first iphone's application with Sencha touch but I've noticed a problemĀ : I created many js files which contains the different panels from my application.
All this panels are loaded at the beginning and it slow down the app.

I want to load each js file when I need it. Do you know how to fix this?

Thank you,
Farid

PS: sorry for my english...:">

mitchellsimoens
21 Apr 2011, 9:05 AM
How large is the app?

farid moussa
21 Apr 2011, 9:15 AM
The app is not finish but i think it will be a medium app:It will have to allow to see (photos) and to rent articles and see store's localisation ...

mitchellsimoens
21 Apr 2011, 9:18 AM
Are you creating all your panels right away? You should try to only have 1 or 2 rendered at one time.

http://www.sencha.com/blog/sencha-touch-optimizing-memory-usage/

I did a post on the forums back in like January or February where I posted example code

farid moussa
22 Apr 2011, 3:29 AM
thx, i'll read it...