Sencha Touch application running very slow
I have completed the UI for my application in Sen开发者_如何转开发cha Touch and has integrated every page. But when i run the application it is terribly slow ( even without any functionalities- not even a database connection ). Any one knows how to make the application run faster ? Any help is greatly appreciated.Thanks in advance.
Without much code, it's hard to tell what exactly the problem will be. That said, there's numerous common causes of slow performance:
- DOM goes too deep
- Not destroying panels after you're finished with them
- Using intensive animations on older/slower phones
- autoLoading all your data on app initialization, rather than lazy-loading them when the appropriate panel opens
I'd highly recommend if you haven't checked it out already, to watch this video on Sencha Touch optimization. There's a slideshare out there of it too, though less detailed. This is just the beginning though -- mobile devices have less memory and CPU power so elegant and efficient code is the best medicine. I would follow up watching that video with reading up about building your app in an MVC architecture.
View here. Hope this helps.
精彩评论