2 Dec 2012 12:49 AM #1
Unanswered: Application sending JSON on demand, not on creation (Ext-JS 4)
http://i45.tinypic.com/scezip.jpg -> this is my problem
When I start my application, my computer loads it 15 seconds. It loads a whole bunch of grids and things that I want to load dynamically.
What do I have to do if I want for those grids to be loaded "on demand"? Do I have to load controllers dynamically or just the grids? And how?
3 Dec 2012 11:10 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Do you have autoLoad set to true on the stores?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
4 Dec 2012 4:25 AM #3
From my experience dynamic loading is always slower then loading everything at once in one file. Split files are nice for developing, but not for production.
Of course, it requires some time to create classes, but much less then Ext itself and mostly equal to network latency of one-two requests. Sencha Tool can automate build process, if properly configured.