SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2006
    Location
    Greece
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Mobile on subdomain? Or autosizing template?

    What is the best practice for a website that strives to be mobile-friendly...

    a) A smart auto-sizing template that adjusts to different display sizes...

    or

    b) Two different templates, one for the desktop and a separate mobile template on a subdomain e.g. m.mysite.com

    Which is better for the user, and also for the developer? Being simpler to build, and maintain.

    Thanks a lot.

  2. #2
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,888
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by EvanGR View Post
    What is the best practice for a website that strives to be mobile-friendly...

    a) A smart auto-sizing template that adjusts to different display sizes...
    or
    b) Two different templates, one for the desktop and a separate mobile template on a subdomain e.g. m.mysite.com

    Which is better for the user, and also for the developer? Being simpler to build, and maintain.
    A smart template that auto-sizes to different displays is much easier for the developer, because once you've made the two or three different layouts, your extra work is done, and from then on there's very little you need to do beyond what you would be doing anyone. It also means that you don't have to worry about any kind of browser sniffing to detect the device and redirect accordingly.

    On the other hand, two different templates give you more scope to fine-tune the mobile site so that it is optimised for mobile users, and to avoid making them download content, stylesheets or large images that aren't going to be used. It also means that mobile users can choose between the cut-down and full-size versions rather than being constrained to using the mobile site.

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2006
    Location
    Greece
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stevie D View Post
    A smart template that auto-sizes to different displays is much easier for the developer, because once you've made the two or three different layouts, your extra work is done, and from then on there's very little you need to do beyond what you would be doing anyone.
    Thanks. One more thing that came to mind... what about using different images and elements for desktop and mobile? e.g. large images and rich media for the desktop, versus smaller and fewer images for mobile... will a single auto-adjusting template be able to serve less data on mobile devices?

    I am not sure how this is done yet, but the CSS "display:none" will still send the data to the client.

    Thank you


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •