Re:How To Build A Mobile Website
by tnorthcutt on Wednesday November 03, 2010 @10:53AM
(#1864966)
One thing I didn't see covered in the "User Initiated Method" section is detecting mobile browsers, and prompting the user to choose between the full site and the mobile site. I like this method, since most of the time, the detection will probably work, and thus users will be made aware that there is a mobile version, whereas they might miss a small link in the header or footer (even moreso on a small mobile screen). Additionally, it still allows choosing for those mobile users who wish to view the full site (or desktop users who wish to view the mobile site), and you can still have the "view mobile site" link on the full site for the users who were somehow missed by the browser detection method. IMO, this is the best combination of automagically changing things and allowing the user to choose. ESPN.com is a good example of using this method.
[ Parent
| on HN ]
Re:How To Build A Mobile Website
by djb_hackernews on Wednesday November 03, 2010 @11:20AM
(#1865072)
I do this for one of my webapps. I detect based on the user agent, and just pass off to different templates (I'm using django). So it doesn't really matter what url you use, it just matters what device.
I also have an 'm' subdomain that automatically goes to the mobile version.
I stayed away from the prompt, because mobile browsers are really terrible, and dialogs are that much more terrible.