I believe this post is the resolution to my trouble
Flickering when navigating between pages .
Specifically:
$(document).bind("mobileinit", function()
{
if (navigator.userAgent.indexOf("Android") != -1)
{
$.mobile.defaultPageTransition = 'none';
$.mobile.defaultDialogTransition = 'none';
}
});
I am coming from the C# world and pretty much clueless as to jQuery mobile. I would like to add this snippet but not sure where. If it matters I think that I would add it to jquery.mobile-1.1.0.rc.1.js but then I don’t know where in there, If that’s the right file.
This code must be run after you include jQuery Core and before you include jQuery Mobile. The reason is that to run the code, jQuery must be present, but this event handler needs to be bound before jQuery Mobile initializes.
For example:
Documentation: http://jquerymobile.com/demos/1.1.0/docs/api/globalconfig.html
Also, the UA sniffing isn’t necessary because jQuery Mobile tests the device for CSS 3D transform support and only uses the nice transitions on devices that support them. This is done for you in jQuery Mobile 1.1.0+, but the default fallback transition is
fadeso you’d have to change that default anyway.Source: http://jquerymobile.com/demos/1.1.0/docs/pages/page-transitions.html
As a general observation I noticed that you put the
if/thenstatement inside the event handler, you might as well put it outside so if it isn’t an Android device the event binding/firing never has to occur.For example: