Making your site mobile-friendly - Ignite Manchester 01.03.2010

Post on 14-Jan-2015

1037 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

Transcript

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 browserswill work ok-ish

“But the mobile context...”

2. separate mobile site(m.flickr.com, mobile.mysite.com, ...)

beware browser sniffingphoto: 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 spritesDave Shea, A List Apartwww.alistapart.com/articles/sprites

data URLshttp://software.hixie.ch/utilities/cgi/data/data

www.opera.com/developerpatrick.lauke@opera.com

top related