10 things to make you a great mobile web developer

33
10 THINGS TO MAKE YOU A GREAT MOBILE WEB DEVELOPER Chris Love Tellago Inc. http://ProfessionalASPNET.com http://Twitter.com/ChrisLove Now With More Code!

Upload: chris-love

Post on 27-Jan-2015

104 views

Category:

Technology


0 download

DESCRIPTION

10 Things Web Developers Should know to develop successful Mobile Web Sites.

TRANSCRIPT

Page 1: 10 things to make you a Great Mobile Web Developer

10 THINGS TO MAKE YOU A GREAT MOBILE WEB DEVELOPER

Chris LoveTellago Inc.http://ProfessionalASPNET.comhttp://Twitter.com/ChrisLove

Now With More Code!

Page 2: 10 things to make you a Great Mobile Web Developer

TELLAGO

Page 3: 10 things to make you a Great Mobile Web Developer

REFERENCES Mobile Web Books

Programming the Mobile Web http://amzn.to/bZMOch Mobile Web Development http://amzn.to/9cvDoE Mobile Design and Development http://amzn.to/hh8cPd

Page 4: 10 things to make you a Great Mobile Web Developer

1. KNOW THE LANDSCAPE Mobile Devices Are Prevalent Around

the World SmartPhones/Devices Becoming

Common Mobile Data Plans (3/4G) HTML 5 Is Here, Embrace It ;)

Page 5: 10 things to make you a Great Mobile Web Developer

MARKET REALITY

http://on.mash.to/k38NZw

Page 6: 10 things to make you a Great Mobile Web Developer

USER PROBLEMS

Page 7: 10 things to make you a Great Mobile Web Developer

UNDERSTAND THE LANDSCAPE

Lots of Phones Out There! Several Browsers

Opera, Safari, IE, FireFox, many others you never heard of

Proxy Browsers Opera Mini

Page 8: 10 things to make you a Great Mobile Web Developer

OPERA“Opera Mobile has been installed on 125

million smartphones since 2004” Programming the Mobile Web

Page 9: 10 things to make you a Great Mobile Web Developer

WINDOWS PHONE 7 IE 9 Like Desktop

Supports Basic HTML5, CSS3, Canvas, Media Tag Stuff

GPU Speed Does Not Support Touch Does Not Support Input Types

http://bit.ly/ij3RAj http://bit.ly/kYOZ5W

Page 10: 10 things to make you a Great Mobile Web Developer

2. DETERMINE CONTENT Define Use Cases

Order Cases by Most Frequent for Mobile

Make Cases Successful within 3 clicks

Always Offer Link to Desktop Site

Determine if User Location Matters

Page 11: 10 things to make you a Great Mobile Web Developer

2. DETERMINE CONTENT Reduce Form Pages Avoid Welcome

Screens/Splash Predict User Actions

Based On History Think Local

Storage/Tombstoning

Page 12: 10 things to make you a Great Mobile Web Developer

2. CONTEXT Where Is The User Why are They on Your Site What are they looking for What can you offer for

mobile user to solve problem

Where will the user be accessing the site

Page 13: 10 things to make you a Great Mobile Web Developer

3. UNDERSTAND THE VIEWPORT

Viewable Area on Device

May actually be very wide iPhone is actually

980pixels wide Internet Explorer Assumes

1024 pixels wide

http://bit.ly/e18svU

Page 14: 10 things to make you a Great Mobile Web Developer

3. SET THE VIEWPORT•MetaTag• Width• Height• Initial-scale• User-scalable• Minimum-scale• Maximum-scale

<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"/>

http://tinyurl.com/wp7viewport

Page 15: 10 things to make you a Great Mobile Web Developer

4. PROGRESSIVE ENHANCEMENT

Basic content is accessible to all browsers.

Basic functionality is accessible to all browsers.

Semantic markup contains all content. Enhanced layout is provided by

externally linked CSS. Enhanced behavior is provided by

unobtrusive, externally linked JavaScript.

Page 16: 10 things to make you a Great Mobile Web Developer

4. PROGRESSIVE ENHANCEMENT

Page 17: 10 things to make you a Great Mobile Web Developer

WEB APPLICATION LAYERS

HTML

CSS

Server-Side Muckity Muck

AJAX

Page 18: 10 things to make you a Great Mobile Web Developer

4.B SINGLE PAGE SITES Use AJAX to Transition Between Content Use HashTags to Track State jQuery BBQ plugin

http://bit.ly/abippr Allows Transition Effects jQuery Mobile, jqTouch & Sencha

Leverage

Page 19: 10 things to make you a Great Mobile Web Developer

5. UNDERSTAND HTML Leverage HTML5

Semantics Realize HTML5 is much

broader than Markup

Page 20: 10 things to make you a Great Mobile Web Developer

5. TYPICAL LAYOUT

HeaderNavigation

Content

Footer

Page 21: 10 things to make you a Great Mobile Web Developer

HTML5 BOILERPLATE

http://html5boilerplate.comhttp://html5boilerplate.com/mobile/

Page 22: 10 things to make you a Great Mobile Web Developer

6. UNDERSTAND CSS3 Animations Gradients Transforms Shadows Rounded Corners Media Queries So Much More!!

Page 23: 10 things to make you a Great Mobile Web Developer

6. TRANSITIONS 2D Transformations Shadows. Rounded Corners Etc 3D Keyframe Animations!

Page 24: 10 things to make you a Great Mobile Web Developer

7. AJAX jQuery & Other Frameworks jQuery Mobile http://jQueryMobile.com Sencha Touch Drive Your Rich UI

Page 25: 10 things to make you a Great Mobile Web Developer

7. JQUERY MOBILE Provide Common

Framework Across Devices

Browser Capability Rating

Page 26: 10 things to make you a Great Mobile Web Developer

7. JS MOBILE FRAMEWORKS SenchaTouch

http://bit.ly/boAFA7

jQTouch

Really Nice Transitions

Is a Commercial Product

Page 27: 10 things to make you a Great Mobile Web Developer

8. TOUCH GESTURES Fingers Are Fat 20px Spacing Primary Items Min 40px W &H Provide Quick Feedback of Touched

Item Include Auto-Clear Feature for Text

Inputs

Page 28: 10 things to make you a Great Mobile Web Developer

8. TOUCH GESTURES touchstart touchend touchmove touchenter touchleave gouchcancel

gesturestart* gesturechang

e* gestureend*

http://bit.ly/ion0Umhttp://bit.ly/bYeSRT* Safari Only

Page 29: 10 things to make you a Great Mobile Web Developer

8. TOUCH GESTURES TAP === Click Double Tap !== Double Click

Implement a DoubleTap Detection Pattern <img src="bigbutton.png"

onclick="tap(tapOnce, tapTwice)" />

Page 30: 10 things to make you a Great Mobile Web Developer

9. IMAGES Limit to Logo, Product or Map Do NOT use for

Backgrounds Buttons Icons

CompressThe mandatory attributes for an img tag

are src, width, height, and alt

Page 31: 10 things to make you a Great Mobile Web Developer

9. INLINE IMAGES IE 8+, Other newer browsers Convert to BASE64 Encoded Text Use gZip Compression This is a Data Url Can be used in CSS files

Page 32: 10 things to make you a Great Mobile Web Developer

10. OFFLINE Application Cache Local Storage

localstorage sessionstorage

Page 33: 10 things to make you a Great Mobile Web Developer

THE DEVICE APIS Messaging Address book

management Geolocation Gallery Camera

Calendar Device status

information Native menus