Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7903905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:51:59+00:00 2026-06-03T09:51:59+00:00

I believe this post is the resolution to my trouble Flickering when navigating between

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:52:01+00:00Added an answer on June 3, 2026 at 9:52 am

    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:

    <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
    <script>
    $(document).bind("mobileinit", function()
    {
       if (navigator.userAgent.indexOf("Android") != -1)
       {
         $.mobile.defaultPageTransition = 'none';
         $.mobile.defaultDialogTransition = 'none';
       }
    });
    </script>
    <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
    

    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 fade so you’d have to change that default anyway.

    Defining fallback transitions for non-3D support

    By default, all transitions except fade require 3D transform support.
    Devices that lack 3D support will fall back to a fade transition,
    regardless of the transition specified. We do this to proactively
    exclude poorly-performing platforms like Android 2.x from advanced
    transitions and ensure they still have a smooth experience. Note that
    there are platforms such as Android 3.0 that technically support 3D
    transforms, but still have poor animation performance so this won’t
    guarantee that every browser will be 100% flicker-free but we try to
    target this responsibly.

    The fallback transition for browsers that don’t support 3D transforms
    can be configured for each transition type, but by default we specify
    “fade” as the fallback. For example, this will set the fallback
    transition for the slideout transition to “none”:

    $.mobile.transitionFallbacks.slideout = "none"
    

    Source: http://jquerymobile.com/demos/1.1.0/docs/pages/page-transitions.html

    As a general observation I noticed that you put the if/then statement 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:

    <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
    <script>
    if (navigator.userAgent.indexOf("Android") != -1)
    {
        $(document).bind("mobileinit", function()
        {
          $.mobile.defaultPageTransition = 'none';
          $.mobile.defaultDialogTransition = 'none';
        });
    }
    </script>
    <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had this answer on another post I asked: I believe the VS designer
The JQuery gets the data and send it to the PHP like this: $(document).ready(function(){
I believe this code may require more effort to comprehend than average, so I'm
I believe this question might have been previously attempted in 2006 on a different
I believe this question applies to any of the For Html helpers, but my
I believe this questions has been asked in some or the other way but
I believe this question applies equally well to C# as to Java, because both
I believe this is a beginner's CSS question. I am utilizing the method described
I believe this to be related partially to short-circuiting logic, but I couldn't find
I believe this is possible but I haven't done it before. I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.