jQuery Mobile flickering screen during transitions

后端 未结 3 1777
悲&欢浪女
悲&欢浪女 2020-12-19 21:18

I am testing a mobile web application built in jQuery Mobile 1.1.0. I am testing the website application using my Galaxy Nexus running on android 4.0. There is a nasty flick

3条回答
  •  既然无缘
    2020-12-19 21:42

    The only real way to prevent the "flickering" is to disable the jQuery Mobile page transitions altogether. In the of your document, place this code:

    // load your custom jQuery Mobile Defaults
    
    
    // load jQuery Mobile
    
    
    // load your scripts.js (your javascript & functions, etc.)
    
    

    To disable transitions, inside of the mobile-site-custom-jqm-defaults.js file, place this code:

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

提交回复
热议问题