This document contains the slides and notes from a workshop on breaking HTML5 limits on mobile JavaScript presented by Max Firtman on May 29, 2012 in San Francisco. The workshop covered various challenges in mobile web development including differences between platforms, native vs web applications, inconsistent standards support, lack of documentation from vendors, and user experience fragmentation across devices. It provided examples of these issues and discussed strategies for addressing limitations and problems in the mobile space.
40. mobile browsers
‣ too many
‣ (some) too limited
Tuesday, May 29, 12
41. mobile browsers
‣ too many
‣ (some) too limited
‣ (some) too innovative
Tuesday, May 29, 12
42. mobile browsers
‣ too many
‣ (some) too limited
‣ (some) too innovative
‣ (most) without documentation
Tuesday, May 29, 12
43. mobile browsers
‣ too many
‣ (some) too limited
‣ (some) too innovative
‣ (most) without documentation
‣ (most) without a name
Tuesday, May 29, 12
44. mobile browsers
‣ too many
‣ (some) too limited
‣ (some) too innovative
‣ (most) without documentation
‣ (most) without a name
‣ (most) without debugging tools
Tuesday, May 29, 12
45. statistics
gs.statcounter.com - Apr 12
Tuesday, May 29, 12
47. some are known
‣ Safari (on iOS)
‣ Opera Mobile (on Android & Symbian)
‣ Firefox (on Android)
‣ Chrome (on Android)
‣ Internet Explorer (on Windows Phone)
Tuesday, May 29, 12
78. html5
‣ w3c standards (all in draft)
Tuesday, May 29, 12
79. html5
‣ w3c standards (all in draft)
‣ some are other w3c standards
Tuesday, May 29, 12
80. html5
‣ w3c standards (all in draft)
‣ some are other w3c standards
‣ de-facto standards
Tuesday, May 29, 12
81. html5
‣ w3c standards (all in draft)
‣ some are other w3c standards
‣ de-facto standards
‣ w3c ex-standards
Tuesday, May 29, 12
82. html5
‣ w3c standards (all in draft)
‣ some are other w3c standards
‣ de-facto standards
‣ w3c ex-standards
‣ everything “new” on the web
Tuesday, May 29, 12
96. second class developers
‣ vague, non-existent or outdated
documentation
‣ new features discovered by third-parties
Tuesday, May 29, 12
97. second class developers
‣ vague, non-existent or outdated
documentation
‣ new features discovered by third-parties
‣ lack of samples
Tuesday, May 29, 12
98. second class developers
‣ vague, non-existent or outdated
documentation
‣ new features discovered by third-parties
‣ lack of samples
‣ no developer tools
Tuesday, May 29, 12
118. debugging tools
Remote Web Inspector
• BlackBerry Smartphones 7
• BlackBerry PlayBook
• Google Chrome for Android 4
• Opera Mobile
Tuesday, May 29, 12
119. debugging tools
Adobe Shadow
adobe.com/go/shadow
Tuesday, May 29, 12
128. battery consumption
WW 2012 – Session: Mobile Web Performance April 16–20, 2012, Lyon, Fra
50
45
40
Energy (Joules)
35
30
25
20
15
10
5
0
live.com
microsoft
weather
picasa
baidu
facebook
imdb
youtube
go.com
wall st. journal
blogger
3G setup
nytimes
tumblr
wikipedia
apple
ebay
amazon
gmail
yahoo
cnn
bbc
engadget
natgeo
wordpress
aol
Figure 6: Energy consumption of top websites
Web site Comment % Battery Traffic (bytes)
life Upload Download
The resulting numbers are shown in Figure 6. Note that the e
m.gmail.com inbox 0.41 9050 12048 bars are so small that they are barely visible.
m.picasa.com
m.aol.com Who Killed My Battery ~ mobilexweb.com/go/battery
user albums
portal home
0.43
0.59
8223
11927
15475
37085
The left most column in Figure 6 shows the energy neede
set up a 3G connection and download a few bytes without any
m.amazon.com product page 0.48 9523 26838
ditional processing. Since all navigation requests must setup a
mobile.nytimes.com US home page 0.53 15386 66336
touch.facebook.com facebook wall 0.65 30214 81040 connection we treat this measurement as a baseline where th
mw.weather.com Stanford weather 0.62 38253 134531 teresting differences between web sites are above this line.
apple.com
Tuesday, May 29, 12 home page 1.41 86888 716835 Figure 6 is generated from the mobile versions of the
129. battery consumption
Amazon consumes 17% energy
in a non used JS
jQuery.js ~ 4 joules (0,02%)
~5000 jQuery parsings per charge
Who Killed My Battery ~ mobilexweb.com/go/battery
Tuesday, May 29, 12
141. you can reach a good
thank you!
experience
firt.mobi Tomorrow
firtman@gmail.com 10.30am
twitter: @firt
www.mobilexweb.com Book signing
Pictures)from)freedigitalphotos.net)
Tuesday, May 29, 12