This document summarizes YUI's approach to mobile web development. It discusses implementing features like capability-based loading, transitions, touch events, and scroll views that work across mobile and desktop browsers. It presents YUI 3's features for mobile development, including abstracting differences in touch and mouse gestures. The document advocates developing using front-end principles of progressive enhancement to ensure code works on all browsers, both mobile and desktop.
1. A phone, a tablet and a
laptop walk into a bar...
YUI’s take on mobile web development
tablet
laptop
desktop
server
refrigerator
Monday, December 20, 2010
2. 1. Mobile and the philosophy of F2E
2. YUI 3 and the mobile web
a. Capability-based loading
b. Transitions
c. Intrinsic support for Touch events
d. ScrollView
e. DD Touch support
3. Conclusion
Monday, December 20, 2010
3. Mobile and the philosophy of
F2E
Monday, December 20, 2010
9. What we love about this evolution*
The web is expanding its reach to
new people and places
These are (mostly) modern, capable browsers
What F2Es do becomes more valuable
*It’s so shiny
Monday, December 20, 2010
10. The Aren’t
Mobile Specific
Monday, December 20, 2010
11. The Features Aren’t
Mobile Specific
Monday, December 20, 2010
20. • Body text
“All 10 mobile WebKits I’ve identified so far are subtly or
wildly different.”
“Out of 19 tested WebKits, no two are exactly the same.”
“This is not consistency; it’s thinly veiled chaos.”
Monday, December 20, 2010
23. OK for docking stations (maybe)
Not OK for the web
"Anyone who slaps a 'this page is best viewed with
Browser X' label on a Web page appears to be yearning
for the bad old days, before the Web, when you had
very little chance of reading a document written on
another computer, another word processor, or another
network."
-- Tim Berners-Lee in Technology Review, July 1996
Monday, December 20, 2010
24. "Anyone who slaps a 'this page is best viewed with
Browser X' label on a Web page appears to be yearning
for the bad old days, before the Web, when you had
very little chance of reading a document written on
another computer, another word processor, or another
network."
-- Tim Berners-Lee in Technology Review, July 1996
Monday, December 20, 2010
36. YUI 3.2.0
• Capability-based loading
• Transitions
• Touch/Mouse Gesture Abstractions
• ScrollView Widget
• Touch support for Drag and Drop
• LocalStorage support in DataSource
• HTML 5 support in History
Monday, December 20, 2010
37. Loading
Seed
• Small upfront download
• Free dependency resolution
Manual
• Single blocking request
• Manage your own dependencies
Monday, December 20, 2010
41. Transitions
Cross-Browser Support
• Vendor Prefixes
-webkit-transition-property: -webkit-transform
-moz-transition-property: -moz-transform
• But, still only partial A-Grade support
Monday, December 20, 2010
51. • Abstraction layers provide future compatibility
• Code once, use anywhere
• F2E principles and practices still apply
• Supporting mobile browsers makes YUI better for all
browsers
Monday, December 20, 2010