What are common sources of PhoneGap with jQuery Mobile performance issues?

前端 未结 8 1771
既然无缘
既然无缘 2021-01-30 18:14

I have an application written using PhoneGap 1.0 and jQuery Mobile 1.0b2 running on iPhone and iPad.

Ever since I started using the framework, I have been plagued by per

8条回答
  •  一向
    一向 (楼主)
    2021-01-30 19:04

    Another way to improve the performance of the PhoneGap App is as follows :-

    As @Kimm said :-

    $('#myButton').bind('vclick', function(ev) {
       ev.preventDefault();
       //Your code
    });
    

    Here the response will be far better than .click but the system may propagate the event in some cases which results in an un-expected behaviour. To solve this problem use :-

    $('#myButton').bind('vclick', function(ev) {
        ev.preventDefault();
        //Your code
    
       return false;
    });
    

    Using this every thing will be proper and no side effects... :)

提交回复
热议问题