Slide 1

Slide 1 text

Ordered List Brandon Keepers Grand Rapids Web Development Group May 23, 2011 Lessons Learned in Mobile Web App Development

Slide 2

Slide 2 text

?

Slide 3

Slide 3 text

~6 months

Slide 4

Slide 4 text

The App

Slide 5

Slide 5 text

The App Static HTML

Slide 6

Slide 6 text

The App Static HTML CSS

Slide 7

Slide 7 text

The App Static HTML CSS JSON API

Slide 8

Slide 8 text

The App Static HTML CSS JSON API JavaScript

Slide 9

Slide 9 text

The App Static HTML CSS JSON API JavaScript JavaScript

Slide 10

Slide 10 text

The App Static HTML CSS JSON API JavaScript JavaScript JavaScript

Slide 11

Slide 11 text

CSS challenges

Slide 12

Slide 12 text

-webkit-* iOS Android Blackberry Palm Symbian

Slide 13

Slide 13 text

position: fixed;

Slide 14

Slide 14 text

Header Footer Scrollable Content

Slide 15

Slide 15 text

ader oter llable ntent

Slide 16

Slide 16 text

header { position:fixed; top:0; right:0; left:0; height:56px; } .content { margin:56px 0 48px 0; } footer { position:fixed; bottom:0; right:0; left:0; height:56px; } fixed ader oter llable ntent

Slide 17

Slide 17 text

header { position:fixed; top:0; right:0; left:0; height:56px; } .content { margin:56px 0 48px 0; } footer { position:fixed; bottom:0; right:0; left:0; height:56px; } fixed doesn’t w ork ader oter llable ntent

Slide 18

Slide 18 text

header { position: absolute; top:0; right:0; left:0; height:56px; } .content { position: absolute; top:56px; bottom: 48px; right:0; left:0; overflow: auto; } footer { position: absolute; bottom:0; right:0; left:0; height:56px; } absolute ader oter llable ntent

Slide 19

Slide 19 text

header { position: absolute; top:0; right:0; left:0; height:56px; } .content { position: absolute; top:56px; bottom: 48px; right:0; left:0; overflow: auto; } footer { position: absolute; bottom:0; right:0; left:0; height:56px; } absolute doesn’t w ork ader oter llable ntent

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

iScroll

Slide 22

Slide 22 text

START FINISH DEMO

Slide 23

Slide 23 text

START FINISH DEMO

Slide 24

Slide 24 text

CSS3 Effects

Slide 25

Slide 25 text

CSS3 Effects -webkit-box-shadow

Slide 26

Slide 26 text

CSS3 Effects -webkit-box-shadow background: -webkit-gradient(…)

Slide 27

Slide 27 text

CSS3 Effects -webkit-box-shadow background: -webkit-gradient(…) -webkit-transform

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

Acceleration Hardware

Slide 30

Slide 30 text

START FINISH DEMO

Slide 31

Slide 31 text

START FINISH DEMO

Slide 32

Slide 32 text

Solution No CSS3 fanciness No animation on Android

Slide 33

Slide 33 text

JavaScript challenges

Slide 34

Slide 34 text

Debugging is hard

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

Execution Priority iOS prioritizes UI Android prioritizes JavaScript

Slide 39

Slide 39 text

Organization Code

Slide 40

Slide 40 text

Controllers Views Views Models ?

Slide 41

Slide 41 text

$ find public/javascripts/ -type f | wc -l 70 $ du -sh public/javascripts/ 916K public/javascripts/

Slide 42

Slide 42 text

Concated & Minified 161K

Slide 43

Slide 43 text

Lessons Learned

Slide 44

Slide 44 text

Lessons Learned mobile devices are slow-ish

Slide 45

Slide 45 text

Lessons Learned mobile devices are slow-ish the browser can but the device can’t

Slide 46

Slide 46 text

Lessons Learned mobile devices are slow-ish the browser can but the device can’t lack of consistency across Android devices

Slide 47

Slide 47 text

Resources http://www.html5rocks.com/tutorials/speed/html5/ http://bit.ly/grwebdev-mobile

Slide 48

Slide 48 text

Ordered List Thank you! [email protected] @bkeepers Brandon Keepers Grand Rapids Web Development Group May 23, 2011