Making your site mobile-friendly
Patrick H. Lauke / Opera Software
we need a site that
 works on iPhone
...works on iPhone...
    oh, and iPad
“remove iPhone from ass”
  Peter-Paul Koch, The iPhone obsession
        www.quirksmode.org/blog/archives/2010/02/the_iphone_obse.html
make your site work on
all (most) mobile devices
1. do nothing
mobile browsers
will work ok-ish
“But the mobile context...”
2. separate mobile site
  (m.flickr.com, mobile.mysite.com, ...)
beware browser sniffing
     photo: http://www.flickr.com/photos/timdorr/2096272747/
offer users choice:
 diet or “full fat”?
3. single adaptive site
nothing new...
fluid layout, progressive enhancement, graceful degradation
CSS 2 Media Types
   (screen, print, handheld)
CSS 3 Media Queries
         <link rel=”stylesheet”
media=”screen and (min-width:800px)”… >
viewport meta
    <meta name="viewport"
content="width=device-width">

    <meta name="viewport"
content="width=320, initial-
scale=2.3,user-scalable=no">
SVG (Scalable Vector Graphics)
minimise server requests
  (minify JavaScript, combine CSS, …)
CSS sprites
 Dave Shea, A List Apart
 www.alistapart.com/articles/sprites
data URLs
http://software.hixie.ch/utilities/cgi/data/data
www.opera.com/developer
   patrick.lauke@opera.com

Making your site mobile-friendly - Ignite Manchester 01.03.2010