PhoneGap 1.4 wrapping Sencha Touch 2.X - What about performance?

后端 未结 4 2011
情书的邮戳
情书的邮戳 2020-12-02 13:53

I\'m building a multiplatform tablet app wrapping it with Phonegap 1.4 using just its webview, then I work my magic with the Sencha Touch 2 framework. By multiplatform I mea

4条回答
  •  天命终不由人
    2020-12-02 14:05

    Same here. I've tested many of my Sencha Touch 2 applications on Samsung GalaxyTab and the performance is really terrible. There's a fact (which maybe a part of actual reason) that, iOS does many pre-process and calculation before rendering to make it seems smoother to user's look and feel, while Android tends to render & process simultaneously on the go.

    In general, it could be say that, to every cross-platform mobile apps built on Javascript, like Sencha Touch, iOS performance is significantly better than Android. However, Sencha Touch dev team is trying their best to improve this, hopefully it would be better in next releases. You could see this article about iOS & Android devices performance comparison.

    http://www.sencha.com/blog/sencha-touch-2-developer-preview/

    PS: While it's much relevant to the OS's limit, you can also optimize your app to make it perform better on Android devices. To my experience, the best practice is:

    • Do NOT use CSS3 too much.
    • Keep your DOM as minimal as possible.

    Hope it helps.

提交回复
热议问题