Note that there are some explanatory texts on larger screens.

plurals
  1. POTips for single JQuery page supporting both Desktop and Mobile?
    primarykey
    data
    text
    <p>I currently have a site that hosts a page that I want to both serve desktop and mobile browsers. The desktop design and implementation is already completed and uses JQuery.</p> <p>I'd love to have this page to use a different layout when a user visits on a mobile browser that is supported by JQuery Mobile.</p> <p>I'm trying to figure out the best way to do this but can't seem to find information on best practices for this. All the existing documentation/guides I can find on this assume that the jQuery page you're writing is exclusively supporting mobile browsers so doesn't address formatting for desktop.</p> <p>Options that seem obvious:</p> <ol> <li>Same page but just additional markup on top of existing content to reformat for mobile</li> <li>Same page but with addtional markup that <strong>duplicates</strong> the existing content, but is formatted for mobile. If desktop browser, the non-mobile content is hidden/not rendered.</li> <li>Some dynamic detection of mobile vs. non-mobile then route between 2 different pages (desktop vs. mobile)</li> </ol> <p>I think #2 is probably the easiest, but I don't like the idea of duplicate content in the page. #1 seems unrealistic to think that I can just augment my existing content with a bunch of markup to magically have it format for mobile (while still supporting desktop).</p> <p>I'd appreciate any tips and pointers to any guides that might exist that talks about best practices.</p> <p><strong>Clarification:</strong> Assume I'm not using Rails, ASP.NET MVC, etc. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload