问题
Am using Samsung Galaxy Phone with Android 4.1 Version. Am seeing white screen between page tranistion. JQM Version is : 1.3.1. Already doing the following as per other suggestions:
$(document).on("mobileinit", function(){
$.mobile.defaultDialogTransition = "none";
$.mobile.defaultPageTransition = "none";
});
But, does not seem to work. This is more evident when we come back from another page. Would appreciate valuable suggestions and fix.
回答1:
Make sure that the mobileinit handler is located between jQuery js and jQuery Mobile js.
Furthermore as mentioned in jQM 1.3.1 Docs:
Important: Some platforms currently have issues with transitions. We are working on a solution to solve the problem for everyone. If you are experiencing flickers and flashes during or at the end of a transition we suggest the following workaround. Please note that this workaround should be thoroughly tested on the target platform before deployment. This workaround is known to cause performance issues and browser crashes on some platforms, especially Android. Add the following code to your custom css.
.ui-page { -webkit-backface-visibility: hidden; }
Only seeing fade transitions? To view all transition types, you must be on a browser that supports 3D transforms. By default, devices that lack 3D support (such as Android 2.x) will fallback to "fade" for all transition types.
来源:https://stackoverflow.com/questions/16870713/jquery-mobile-white-screen-between-transitions