5. MOBILE WEB
• web vs. native
• responsive web (web apps vs. web pages)
• sapo mobile framework
• mobile web development tools
• mobile tips
Wednesday, November 21, 12
11. WEB ++
• easy to update (style.css?v=1)
• develop once, reach multiple platforms
• nice content reader (news, photos, videos)
• more people know about the web and share
that knowledge online
Wednesday, November 21, 12
13. WEB --
• depends heavily on hardware, low
performance
• depends heavily on firmware features
• no access to certain hardware (camera,
filesystem, accelerometer, etc)
Wednesday, November 21, 12
17. NATIVE ++
• access to a marketplace (Apple Apps Store,
Google Play, etc), more exposure
• access to hardware, better performance
• super fast interactions, less touch lag
• better overall user experience
• keeps user info safe (favorites, preferences)
Wednesday, November 21, 12
19. NATIVE --
• way more development time because you
have to make N apps (iOS, Android, WP,
etc), more expensive
• way more design time (iOS, Android x 4),
unhappy designers
• updates are costly
Wednesday, November 21, 12
21. ASK YOURSELF
• do you need specific hardware features?
• can you afford a large development team?
• will you need to update app features often?
Wednesday, November 21, 12
23. There is no Mobile Web.
There is only The Web, which
we view in different ways.
There is also no Desktop Web.
Or Tablet Web. Thank you.
Stephen Hay
Wednesday, November 21, 12
34. MEDIA QUERIES
• device-width is key for high resolution
phones that might be considered tablets
when on landscape
• orientation might be tricky. use it only for
minor design decisions
Wednesday, November 21, 12
39. VIEWPORT TAG
<meta name="viewport" content="
width=device-width,
initial-scale=1,
minimum-scale=1,
maximum-scale=1,
user-scalable=no"
/>
<meta name=”MobileOptimized” content=”320”>
Wednesday, November 21, 12
40. BUT WHAT IS IT
REALLY ABOUT?
Wednesday, November 21, 12
41. WHAT IS IT REALLY
ABOUT?
Wednesday, November 21, 12
42. WHAT IS IT REALLY
ABOUT?
• it’s not a single piece of technology, but rather,
a set of techniques and ideas that form a whole
• one site, multiple viewports (mobile, tablet,
desktop, tv)
• touchscreen vs cursor vs remote
• responsive content
• mobile first
Wednesday, November 21, 12
43. SO WHY DO WE HAVE
MOBILE SPECIFIC
WEBSITES?
m.facebook.com mobile.twitter.com m.yahoo.com m.sapo.pt gmail.com
Wednesday, November 21, 12
45. IT DEPENDS...
• sometimes it’s just easier to have separate sites
• support older phones (no media queries
support)
• more focus on mobile, better mobile
experience, better performance (touch matters)
• trying to mimic a native app
• legacy, sometimes necessary
Wednesday, November 21, 12
46. ONE SITE USE CASE
TICKETLINE.PT
Wednesday, November 21, 12
47. ONE SITE USE CASE
TICKETLINE.PT
• one server-side thingy, one template,
multiple CSS rules
• only major difference is cursor interface vs
touch interface when choosing seats
• no native app look (back button, title bar,
fixed main menu, etc), couldn’t care less
• re-organizing HTML blocks is not easy
Wednesday, November 21, 12
48. TWO SITES USE CASE
SAPO.PT vs M.SAPO.PT
Wednesday, November 21, 12
49. TWO SITES USE CASE
SAPO.PT vs M.SAPO.PT
• not everything on SAPO has a mobile version;
m.sapo.pt ensures every content is mobile.
• not all sites have an available dev team to update it
• sometimes teams don’t have another option due to
factors beyond their control
• one team to create all mobile sites
• two different links make sharing a living hell for the
dev team
Wednesday, November 21, 12
51. RESPONSIVE CONTENT
• content first, navigation second
• prioritize
• don’t hide content, you never know better
than your users what they want
• for some users, the only viewport to the web
might be their mobile phone
Wednesday, November 21, 12
53. MOBILE FIRST
• progressive enhancement
• CSS rules for less capable devices first
• larger screen, better hardware (most times),
more rules
• always use fallbacks, if not IE7 & IE8 will see
mobile version
Wednesday, November 21, 12
59. WHAT IS IT?
• it’s a mobile/tablet specific framework
• good for reading content (news, videos,
photos)
• one platform for all of SAPO’s mobile sites
Wednesday, November 21, 12
65. MOBILE DEV TOOLS
• Google Chrome, because it’s Webkit, like iOS
and Android
• Chrome Inspector, now with user agents,
screen sizes and touch events
• iOS SDK for iPhone + iPad simulator,
Android SDK for Android simulator
Wednesday, November 21, 12
68. GENERIC TIPS
• design for retina, use CSS when possible
• if possible, use icon fonts (fontawesome)
• remember, when developing, things will look
bigger on your desktop screen
• min font size? 16px. too big? cry me a river...
• fat fingers (44x44)
• use sprites, now more than ever
Wednesday, November 21, 12
72. GENERIC TIPS
• don’t use :hover
• no horizontal scroll, thank you
• long vertical scroll? no prob.
• use fluid layouts
• provide ways to change viewport or view
desktop site
Wednesday, November 21, 12