Why Teams call analytics are critical to your entire business
Making your site mobile-friendly - ThoughtWorks Manchester GeekNights 17.11.2010
1. Making your site mobile-friendly
TIPS AND TECHNIQUES FOR A BETTER MOBILE PRESENCE
Patrick H. Lauke / ThoughtWorks Manchester GeekNights / 17 November 2010
28. CSS 3 Media Queries
“...the new hotness”Jeffrey Zeldman
http://www.zeldman.com/2010/04/08/best-aea-yet/
29. CSS 3 Media Queries
●
build and extend CSS 2.1 Media Types
●
more granular control of capabilities
● width, height, orientation, color, resolution, …
http://www.w3.org/TR/css3-mediaqueries/
30. CSS 3 Media Queries
<link rel="stylesheet" ...
media="screen and (max-width:480px)" href="...">
@import url("...") screen and (max-width:480px);
@media screen and (max-width:480px) {
// insert CSS rules here
}
35. viewport meta
● on desktop viewport = visible area of browser
● mobile browsers have “virtual viewport”
●
viewport meta gives hints
http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWeb
Content/UsingtheViewport/UsingtheViewport.html
41. minimise data
● data transfer over network can be slow
●
compress images (PNGCrush)
●
optimise your HTML (death to div-itis)
● minify JavaScript
● combine CSS
42. minimise server requests
●
each request has overhead
●
limit to concurrent requests
● caching not reliable (e.g. iPhone > 25Kb)