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 8162747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:49:57+00:00 2026-06-06T18:49:57+00:00

I am currently looking at jQuery mobile and its system of loading web pages

  • 0

I am currently looking at jQuery mobile and its system of loading web pages with XmlHttpRequest. Thanks to that it is possible to automatically perform transition animations between two pages, for instance.

However, something is not clear to me. If I understand correctly, each new page of a jQuery mobile powered website is injected in the DOM of the initial web page. The documentation of jQuery mobile even tells that because of this mechanism, the <title> tag of new webpages are not taken into account.

So, in a way, if my initial webpage A.html loads a page B.html, I would tend to think that the webpage B.html does not need to have a full HTML grammar with the <html>, <head> or <body> tags.

My page B.html could directly begin with a <div> element.

Am I right?
Is a full html page needed when loading a HTML page with jQuery mobile?
What are the pros and cons about having a webpage with a wrong/truncated HTML syntax (appart that this page should not be accessed directly but through the main page)?

  • 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-06T18:49:58+00:00Added an answer on June 6, 2026 at 6:49 pm

    But then what happens when a user starts off on A.html, then goes to B.html, and then refreshes the page? jQuery Mobile uses a pushState plugin that updates the URL as if the user had gone to the B.html page normally. This means that if the user refreshes on B.html, there won’t be the proper includes to create your mobile site if it’s not a full document.

    My recommendation is to include the jQuery Mobile JS/CSS files in each document, to include the jQuery Core JS file in each document, and to include external custom JS/CSS files that holds all the necessary JS and CSS for your site. This way no matter what page in your site the user accesses, it will include all the necessary information. This doesn’t add a whole lot of bloat to your site, just a few lines of includes per page. Most of the time all of those includes will be ignored when jQuery Mobile pulls a page into the DOM via AJAX (jQuery Mobile only grabs the first data-role="page" element and it’s contents, everything else in the document is ignored).

    Long Story Short:

    The performance benefit to omitting a proper HTML structure to each document is not worth possibly breaking your user’s experience for common occurrences such as refreshing a page (which happens automatically on many devices when a user opens the browser to an already open page).

    A major con for not using a valid HTML structure is that you’re hurting your SEO. The meta tags in the <head> of the documents should still be unique to the content in the page, so that search engine crawlers can properly index your site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are currently looking at the possibility of a jquery mobile app for company
I am developing a mobile web app. Currently I have this snippet of jQuery
I'm currently designing a portfolio website and I'm looking for some jQuery addon that
I am currently looking to deploy a web forum on the azure platform. I
I am currently looking into a couple of possibilities for a microsite that I
I am currently using jQuery FullCalendar as a calendar system, and it is working
I am currently building a game in phonegap using jQuery Mobile frame work. What
I am using jQuery currently and I am looking for a way to hide
I am currently looking for a JavaScript (jQuery) SlideShow Script which allows me to
I'm using Jquery mobile, so ignore some of the following overdone css, its not

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.