TheDotProduct

Web-tech nerd stuff

Mobile Website design & development guidelines

Like it or hate it, the Apple iPhone has ushered in the age of the “Smartphone” which in turn has delivered mobile web-browsing to the masses. The mobile browser, whilst now broadly quite capable (at least on leading platforms), has introduced a slightly different set of requirements in terms of design and development of Websites.

Many, many designers, developers and others have written articles on how to design and/or develop for the mobile browser. I am aiming to summarise what I have learnt from several sources alongside my experience an opinion in a (hopefully) relatively quick and simple way. So here goes, I’d recommend that you:

Minimise as far as practicable the use of images
Images can be bad news on the mobile browser for 3 major reasons:

  1. Images generally quite large in terms of file size which slows down the page load – remember that mobile browser users are often on relatively slow connections
  2. Each separate image requires a new HTTP connection from the mobile device to the web-server which has a latency, further slowing the page load
  3. Mobile browsers are likely to have far lower (and a much wider range of) screen resolution than desktop browsers so sizing images so that they are suitable for all mobile devices can be very difficult

If you insist on using images for your website design, use a CSS sprite to reduce download time

Avoid reliance on JavaScript
If you are trying to create a website which is fully functional for all mobile browser users, you should definitely not rely on JavaScript support because many mobile browsers offer very poor JavaScript support. The poor JavaScript support is further compounded by “mini” browsers (such as Opera mini) which user server-side page rendering to reduce the amount of data transmission required, often resulting in poor or missing JavaScript support.
This situation should resolve itself in the next 2 to 3 years as mobile browsers catch up with the current decent offerings from Apple, Google Android and the newer Blackberry devices. Thankfully (for web-developers) the lifetime of mobile devices is relatively low compared to desktop browsers (IE6, please lay down and die!)

When designing your navigation menu, bear in mind that touch screen devices do not (in practice) have an “over” state
This has serious repercussions for “flyout”/”drop-down” menus as you must allow for the fact that touch screen devices do not have a cursor and thus cannot be “over” an element.
Personally, I recommend that you simply replicate the “over” functionality (which often shows a sub-menu) when the element is “clicked”. I aim to write an example of this in the near future as I already have a commercially produced, working example.

Minify your JavaScript & CSS and optimise your website download speed
This results in both reduced data transmission and reduced number of HTTP connections which both reduce download times. Minification is simple and quick to do so there is no excuse!
Layout should be appropriate to low resolution screens.
See my article on Website speed optimisation for more information

Most mobile devices have relatively low screen resolution which means that fixed-width pages designed for desktop will often require both horizontal and vertical scrolling, not good!
I would recommend that for your mobile website, you arrange your content in a single-column form. This will mean that your visitors only have to scroll in one direction, vertical, which is both natural and expected.
You should also think about the physical size of any images used in your content to ensure that they do not cause horizontal scrolling

Exploit mobile features!
Many modern mobile devices (such as the Apple iPhone and many Android devices) support a useful feature which desktop browsers do not (at least in a usable fashion, desktop browser currently claims I am in New York, USA when in fact I am in Oxfordshire in the UK) – Geolocation. navigator.geolocation can be useful in personalising your content to the visitor or offering convenience (e.g. directions to your physical address) so use it!
Yes, I know I just said avoid reliance on JavaScript but you can (and most certainly should) design your website to use JavaScript purely for enhancement – this is often referred to as unobtrusive Javascript and really is easy once you get into the flow of it.

References used for this articles:
http://www.utexas.edu/web/guidelines/mobile.html
http://www.appnovation.com/guidelines-adapting-designs-mobile-delivery

W3C mobile browser feature test:
http://www.w3.org/2008/06/mobile-test/

Created: Wed, 03 Nov 2010 19:00:00 GMT
Last modified: Wed, 03 Nov 2010 19:00:00 GMT