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

后端 未结 4 2009
情书的邮戳
情书的邮戳 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:24

    I have a few fundamental questions about the performance of SenchaTouch based apps. Please refer to this article by LinkedLN team on how they improved the performance of their HTML5 app by hand coding DOM Manipulations :-

    http://engineering.linkedin.com/linkedin-ipad-5-techniques-smooth-infinite-scrolling-html5

    In the context of this article I see two issues with Sencha Touch :-

    1. Sencha Touch builds its UI by converting javascript objects into Dom Nodes and adding them into the Dom Tree. Chrome Tools will show that it ends up adding a relatively high number of DIVs and other DOM elements to the Dom tree. Wouldnt this have a detrimental effect on the performance.

    2. Most of the Dom nodes in the Sencha UI are generated by Sencha API code and not from markup. If we write code to directly manipulate these Dom elements, can we be sure that it will not produce any side effects ?

提交回复
热议问题