Mobile Development
with HTML5
Hunter Loftis
@hunterloftis
[email protected]
Friday, May 11, 12
Slide 2
Slide 2 text
Hunter Loftis
• Director of Technology at Skookum DW
• JavaScript nerd
• (2001) Print illustration
• (2003) Flash animation
• (2004) Web design & development
• (2006) Web apps
• (2012) Mobile apps
Friday, May 11, 12
Slide 3
Slide 3 text
grain of salt:
I’m not a mobile expert.
I’m a JavaScript expert.
Friday, May 11, 12
Slide 4
Slide 4 text
Status4: Golf
gtggolf.com
Realtime, distributed team
scoring on iPhone, Android, and
Blackberry.
Friday, May 11, 12
Slide 5
Slide 5 text
Mobile HTML5
Open-Source
github.com
/madrobby/zepto
/hunterloftis/backbone.viewmodel
Friday, May 11, 12
Slide 6
Slide 6 text
Today, we’ll discuss and distill the
lessons learned from these
experiences into practical
guidelines for building mobile
HTML5 apps.
So?
Friday, May 11, 12
Slide 7
Slide 7 text
Friday, May 11, 12
Slide 8
Slide 8 text
Friday, May 11, 12
Slide 9
Slide 9 text
Friday, May 11, 12
Slide 10
Slide 10 text
Before you jump in
ask yourself three questions:
Friday, May 11, 12
Slide 11
Slide 11 text
Can I build this natively?
• You know (or have time to learn) the
language and APIs.
• You can target a single platform.
• You have the resources to support and
maintain per-platform code bases.
• Your audience will commit to your app.
Friday, May 11, 12
Slide 12
Slide 12 text
Why mobile HTML5?
• You are a front-end web expert (or team).
• Support for many current & future devices.
• Faster, cheaper dev cycles.
• Daily platform improvements for free.
• You accept the 50% performance penalty.
Friday, May 11, 12
Slide 13
Slide 13 text
Mobile web, or hybrid?
• web: URLs, browser security model, and
immediate deploys/updates
• hybrid: app stores, device security model,
and gated deploys/updates
• you can do both, but it’s harder than you
think.
Friday, May 11, 12
Slide 14
Slide 14 text
Starting the app
The easy parts
Friday, May 11, 12
Slide 15
Slide 15 text
Quick Start
https://github.com/skookum/mobilehtml5
http://hunterloftis.com/mobile/
(demos are intentionally un-factored and verbose;
apply proper engineering to real projects)
Friday, May 11, 12