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

  • SEARCH
  • Home
  • 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 8463321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:25:23+00:00 2026-06-10T14:25:23+00:00

I am having an issue with jquery mobile, when I load a page, it

  • 0

I am having an issue with jquery mobile, when I load a page, it pulls the data from an exposed API in JSon format, parses it, then inserts the data into the DOM to display the page, but what’s happening is the page shows, then 2-4 seconds passes while it’s parsing the data, then inserts the data on to the page, and it is not very visually pleasing at all, just wondering how I can pre-load the DOM and parse the JSON before the pageChange animation fires.

  • 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-10T14:25:24+00:00Added an answer on June 10, 2026 at 2:25 pm

    The proper way to handle dynamically generated pages in JQuery Mobile is to bind the page retrieval to the beforepagechange event of your document. Once the page is retreived, you can proceed with the proper changepage.

    For instance, with a getPageFromAPI function retrieving the complete Jquery object for your page accessed with the URL “newPageURL”

    $(document).bind( "pagebeforechange", function( e, data ) {
        if ( (typeof data.toPage === "string") && (data.toPage == "newPageURL")  ) {
            e.preventDefault();    //to make sure we prevent standard page change
            getPageFromAPI({success: function (newPage) {
                    $.mobile.changePage(newPage)
                }
            });
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having an issue with jQuery Mobile when using an iPhone. When I load the
I am having an issue with Jquery Mobile and Jquery Jplayer conflicting with each
I'm having an issue with iOS, specifically the iPhone, where my jQuery Mobile web
i am having issue with loading my selector via a jquery ajax load call
I'm having an issue with the date input from jQuery Tools. When I click
I'm having an issue with two jQuery calls. The first is a load that
Currently having an issue with getting jQuery Mobile and Leaflet to play nicely together.
I'm having an issue with a jQuery Mobile collapsible div not shrinking any narrower
I am using jQuery Mobile and am having an issue with the margin added
I'm having an issue with autocomplete in jquery mobile. I want to create a

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.