SlideShare a Scribd company logo
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
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
Mobile and the philosophy of
                                    F2E




Monday, December 20, 2010
Monday, December 20, 2010
Monday, December 20, 2010
Monday, December 20, 2010
Monday, December 20, 2010
Monday, December 20, 2010
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
The                Aren’t
                                  Mobile Specific




Monday, December 20, 2010
The    Features    Aren’t
                                  Mobile Specific




Monday, December 20, 2010
The Constraints Aren’t
                                Mobile Specific




Monday, December 20, 2010
Monday, December 20, 2010
Touch
                            Gestures




Monday, December 20, 2010
Touch
                              Gestures

                             Transitions
                            Offline Cache
                              History

Monday, December 20, 2010
Monday, December 20, 2010
k-weight
                            run-time performance
                              screen real estate


Monday, December 20, 2010
The Environment
                            Is (Still) Not Homogeneous




Monday, December 20, 2010
•   Body text




Monday, December 20, 2010
•   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
•   Body text




Monday, December 20, 2010
Monday, December 20, 2010
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
"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
Monday, December 20, 2010
Monday, December 20, 2010
Monday, December 20, 2010
Monday, December 20, 2010
Monday, December 20, 2010
YUI 3




Monday, December 20, 2010
YUI 3




Monday, December 20, 2010
YUI 3




Monday, December 20, 2010
YUI 3




Monday, December 20, 2010
Reach    Maintenance    Time
                                            to
                                          Market

Monday, December 20, 2010
YUI 3.2.0, our first step




Monday, December 20, 2010
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
Loading

                               Seed
                                • Small upfront download
                                • Free dependency resolution


                               Manual
                                • Single blocking request
                                • Manage your own dependencies




Monday, December 20, 2010
Capability Driven
                            Manual
                            use(“selector-native”, “transition-native”)



                            Loader
                            use(“dom-style”)

                                  ie: “dom-style”, “dom-style-ie”
                                 !ie: “dom-style”



Monday, December 20, 2010
And once you have it there...
                             Offline Cache It




Monday, December 20, 2010
Transitions

                 Tedious

                 •    node.style.WebkitTransitionProperty = 'left, top'
                 •    node.style.WebkitTransitionDuration = '1s, 2s'
                 •    node.style.WebkitTransitionTimingFunction = 'ease-out, ease-in'
                 •    node.style.top = ‘100px’
                 •    node.style.left = ‘200px’




Monday, December 20, 2010
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
YUI Transitions
                               node.transition({
                                 left: {
                                    duration: 1,
                                    easing: 'ease-out',
                                    value: ‘200px’
                                 },
                                 top: {
                                    duration: 2,
                                    easing: 'ease-in',
                                    value: ‘100px’
                                 }
                               });

Monday, December 20, 2010
YUI Transitions

                              Y.Transition.fx.fadeOut = {
                                 opacity:0,
                                 easing: “ease-out”
                              };

                              myNode.transition(“fadeOut”)




Monday, December 20, 2010
Touch Support
                            DragDrop         ScrollView

                  mouse           touch   mouse      touch




Monday, December 20, 2010
Touch Support
                            DragDrop                    ScrollView

                  mouse           touch              mouse      touch



                                          Gestures




Monday, December 20, 2010
Touch Support
                            DragDrop                      ScrollView

                  mouse             touch              mouse      touch



                                            Gestures

                             move

                  mouse             touch

Monday, December 20, 2010
Touch Support
                            DragDrop                      ScrollView




                                            Gestures

                             move                              flick

                  mouse             touch              mouse          touch

Monday, December 20, 2010
Touch Support
                            DragDrop                      ScrollView

                             move                      move



                                            Gestures

                             move                              flick

                  mouse             touch              mouse          touch

Monday, December 20, 2010
Touch Support
                            DragDrop                      ScrollView

                             move                      move           flick



                                            Gestures

                             move                              flick

                  mouse             touch              mouse          touch

Monday, December 20, 2010
[ demos ]




Monday, December 20, 2010
•    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
Working Together




Monday, December 20, 2010
YUI Gallery
                            http://yuilibrary.com/gallery
                                                                               200


                                                                               150


                                                                               100


                                                                               50



                      02/2010 03/2010 04/2010                                  0
                                                05/2010    06/2010   07/2010

                                                 Modules

Monday, December 20, 2010
Satyen Desai
                            sdesai@yahoo-inc.com

                                    YUI




Monday, December 20, 2010

More Related Content

PDF
Mobile, Media & Touch
PDF
Web Content Management Is Dead Long Live Web Content Management
PDF
World Paper Free Day
PDF
social media - the cyber reality [screen notes]
PDF
Game Changer
PDF
Velocity2010
PDF
Open Source and Open Data in the Age of the Cloud
PDF
Ict trends in education
Mobile, Media & Touch
Web Content Management Is Dead Long Live Web Content Management
World Paper Free Day
social media - the cyber reality [screen notes]
Game Changer
Velocity2010
Open Source and Open Data in the Age of the Cloud
Ict trends in education

What's hot (7)

PDF
5 mobile trends - Tommy Dejbjerg Pedersen, Miracle
PDF
Embedding 21st century new technologies in the primary/elementary classroom
PDF
Us our Organizations and the Evolving Web v2
PDF
Dean Allemang Semantic Web Basics
PDF
Warsaw Poland 20-Oct-2011 on Open Government Linked Data
PDF
Virtual Worlds for Knowledge Management - Makemyworlds Metameets 2010 speech
PDF
Idiots guide to jquery
5 mobile trends - Tommy Dejbjerg Pedersen, Miracle
Embedding 21st century new technologies in the primary/elementary classroom
Us our Organizations and the Evolving Web v2
Dean Allemang Semantic Web Basics
Warsaw Poland 20-Oct-2011 on Open Government Linked Data
Virtual Worlds for Knowledge Management - Makemyworlds Metameets 2010 speech
Idiots guide to jquery
Ad

Viewers also liked (20)

PDF
Introducing YUI 3 AutoComplete
PPT
การกำหนดการเชื่อมโยงสไลด์
PPT
K metrics
PPT
Business Coaching
PPT
เทคนิคการทําภาพขอบจุดกระจาย
PPT
เทคนิคการทําภาพขอบจุดกระจาย
PPT
Stem Cell Presentation
PPTX
Plastic bags dengours for human
PPT
ประวัติส่วนตัวที่น่ารู้ของ
PPTX
Llibertat power
PPS
Rlling Background Presentation
PPTX
Happy first birthday, Rainmaker Consulting!
PPT
เทคนิคการทําภาพขอบจุดกระจาย
PPTX
Goals suck
PDF
Livestand : Learnings. YUI Conf 2011
PDF
Intro to grunt
PDF
500 Startups Tour
PPTX
Photography
PPT
YUI 3 Loading Strategies - YUIConf2010
PDF
YUI 3: Below the Surface
Introducing YUI 3 AutoComplete
การกำหนดการเชื่อมโยงสไลด์
K metrics
Business Coaching
เทคนิคการทําภาพขอบจุดกระจาย
เทคนิคการทําภาพขอบจุดกระจาย
Stem Cell Presentation
Plastic bags dengours for human
ประวัติส่วนตัวที่น่ารู้ของ
Llibertat power
Rlling Background Presentation
Happy first birthday, Rainmaker Consulting!
เทคนิคการทําภาพขอบจุดกระจาย
Goals suck
Livestand : Learnings. YUI Conf 2011
Intro to grunt
500 Startups Tour
Photography
YUI 3 Loading Strategies - YUIConf2010
YUI 3: Below the Surface
Ad

Similar to YUIConf 2010, YUI3 and Mobile Web Development (19)

PDF
GateIn - Presented at Atlanta JUG on 1/19/2010
PDF
CSS3: The Future is Now at Drupal Design Camp Boston
PDF
通用JS时代的模块机制和编译工具
PDF
mobile + location based design
PDF
Dojo Basics Js UserGroup Chicago
PDF
Drupalcon keynote: Open Source and Open Data in the age of the cloud
PDF
Agile Enterprise Devops and Cloud - Interop 2010 NYC
PDF
Go! Go! Gadgets. Writing an OpenSocial Application
PDF
from Realtime Operating systems to unlocking iPhones in less than 30 slides
PDF
Responsive Design for the Web
PDF
Mobile Device as a Smart Metering Display
PDF
Presentation to wdim_students
PDF
Fixing The Media #Fleet09
PDF
A Match Made In The Cloud
PDF
CSS3 now
PDF
We're not designing posters, here!
PDF
Muruca: Linked Data in Art History
PDF
Wikis for Collaborative Learning
PDF
Internet of Things - Why should users care?
GateIn - Presented at Atlanta JUG on 1/19/2010
CSS3: The Future is Now at Drupal Design Camp Boston
通用JS时代的模块机制和编译工具
mobile + location based design
Dojo Basics Js UserGroup Chicago
Drupalcon keynote: Open Source and Open Data in the age of the cloud
Agile Enterprise Devops and Cloud - Interop 2010 NYC
Go! Go! Gadgets. Writing an OpenSocial Application
from Realtime Operating systems to unlocking iPhones in less than 30 slides
Responsive Design for the Web
Mobile Device as a Smart Metering Display
Presentation to wdim_students
Fixing The Media #Fleet09
A Match Made In The Cloud
CSS3 now
We're not designing posters, here!
Muruca: Linked Data in Art History
Wikis for Collaborative Learning
Internet of Things - Why should users care?

Recently uploaded (20)

PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
cuic standard and advanced reporting.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Approach and Philosophy of On baking technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
The AUB Centre for AI in Media Proposal.docx
cuic standard and advanced reporting.pdf
Network Security Unit 5.pdf for BCA BBA.
Encapsulation_ Review paper, used for researhc scholars
Understanding_Digital_Forensics_Presentation.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Programs and apps: productivity, graphics, security and other tools
Digital-Transformation-Roadmap-for-Companies.pptx
Encapsulation theory and applications.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Approach and Philosophy of On baking technology

YUIConf 2010, YUI3 and Mobile Web Development

  • 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
  • 12. The Constraints Aren’t Mobile Specific Monday, December 20, 2010
  • 14. Touch Gestures Monday, December 20, 2010
  • 15. Touch Gestures Transitions Offline Cache History Monday, December 20, 2010
  • 17. k-weight run-time performance screen real estate Monday, December 20, 2010
  • 18. The Environment Is (Still) Not Homogeneous Monday, December 20, 2010
  • 19. Body text 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
  • 21. Body text 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
  • 34. Reach Maintenance Time to Market Monday, December 20, 2010
  • 35. YUI 3.2.0, our first step 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
  • 38. Capability Driven Manual use(“selector-native”, “transition-native”) Loader use(“dom-style”) ie: “dom-style”, “dom-style-ie” !ie: “dom-style” Monday, December 20, 2010
  • 39. And once you have it there... Offline Cache It Monday, December 20, 2010
  • 40. Transitions Tedious • node.style.WebkitTransitionProperty = 'left, top' • node.style.WebkitTransitionDuration = '1s, 2s' • node.style.WebkitTransitionTimingFunction = 'ease-out, ease-in' • node.style.top = ‘100px’ • node.style.left = ‘200px’ 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
  • 42. YUI Transitions node.transition({ left: { duration: 1, easing: 'ease-out', value: ‘200px’ }, top: { duration: 2, easing: 'ease-in', value: ‘100px’ } }); Monday, December 20, 2010
  • 43. YUI Transitions Y.Transition.fx.fadeOut = { opacity:0, easing: “ease-out” }; myNode.transition(“fadeOut”) Monday, December 20, 2010
  • 44. Touch Support DragDrop ScrollView mouse touch mouse touch Monday, December 20, 2010
  • 45. Touch Support DragDrop ScrollView mouse touch mouse touch Gestures Monday, December 20, 2010
  • 46. Touch Support DragDrop ScrollView mouse touch mouse touch Gestures move mouse touch Monday, December 20, 2010
  • 47. Touch Support DragDrop ScrollView Gestures move flick mouse touch mouse touch Monday, December 20, 2010
  • 48. Touch Support DragDrop ScrollView move move Gestures move flick mouse touch mouse touch Monday, December 20, 2010
  • 49. Touch Support DragDrop ScrollView move move flick Gestures move flick mouse touch mouse touch Monday, December 20, 2010
  • 50. [ demos ] 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
  • 53. YUI Gallery http://yuilibrary.com/gallery 200 150 100 50 02/2010 03/2010 04/2010 0 05/2010 06/2010 07/2010 Modules Monday, December 20, 2010
  • 54. Satyen Desai sdesai@yahoo-inc.com YUI Monday, December 20, 2010