How to speedup jquery mobile / phonegap?

后端 未结 3 610
臣服心动
臣服心动 2021-01-31 11:43

I have a small web app. Seven pages, 3.6 KB index.html and 855.5 KB total. The only odd thing i have is a database (~500kb) in Javascript with many lines like:

$         


        
3条回答
  •  庸人自扰
    2021-01-31 12:10

    Try without transitions. Even with jQuery 1.1, the page transitions can be really flickery and slow on an iPhone.

    To drop page transitions globally, just add the following to jqm.glocal.config.js

    $(document).bind("mobileinit", function(){
      $.mobile.defaultPageTransition="none"
    });
    

提交回复
热议问题