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

What's hot (7)

PDF
5 mobile trends - Tommy Dejbjerg Pedersen, Miracle
Seismonaut
 
PDF
Embedding 21st century new technologies in the primary/elementary classroom
neilhopkin
 
PDF
Us our Organizations and the Evolving Web v2
Kaliya "Identity Woman" Young
 
PDF
Dean Allemang Semantic Web Basics
guest4543bb
 
PDF
Warsaw Poland 20-Oct-2011 on Open Government Linked Data
Bernadette Hyland-Wood
 
PDF
Virtual Worlds for Knowledge Management - Makemyworlds Metameets 2010 speech
Helene Zuili
 
PDF
Idiots guide to jquery
Mark Casias
 
5 mobile trends - Tommy Dejbjerg Pedersen, Miracle
Seismonaut
 
Embedding 21st century new technologies in the primary/elementary classroom
neilhopkin
 
Us our Organizations and the Evolving Web v2
Kaliya "Identity Woman" Young
 
Dean Allemang Semantic Web Basics
guest4543bb
 
Warsaw Poland 20-Oct-2011 on Open Government Linked Data
Bernadette Hyland-Wood
 
Virtual Worlds for Knowledge Management - Makemyworlds Metameets 2010 speech
Helene Zuili
 
Idiots guide to jquery
Mark Casias
 

Viewers also liked (20)

PDF
Introducing YUI 3 AutoComplete
Ryan Grove
 
PPT
การกำหนดการเชื่อมโยงสไลด์
Aon Chainarong
 
PPT
K metrics
Ramveer Singh
 
PPT
Business Coaching
Jon Baker
 
PPT
เทคนิคการทําภาพขอบจุดกระจาย
Aon Chainarong
 
PPT
เทคนิคการทําภาพขอบจุดกระจาย
Aon Chainarong
 
PPT
Stem Cell Presentation
Redpath
 
PPTX
Plastic bags dengours for human
Kamran Akhtar
 
PPT
ประวัติส่วนตัวที่น่ารู้ของ
Aon Chainarong
 
PPTX
Llibertat power
Marc Garcia Jané
 
PPS
Rlling Background Presentation
Jon Baker
 
PPTX
Happy first birthday, Rainmaker Consulting!
Rainmaker Consulting, LLC
 
PPT
เทคนิคการทําภาพขอบจุดกระจาย
Aon Chainarong
 
PPTX
Goals suck
Jon Baker
 
PDF
Livestand : Learnings. YUI Conf 2011
sdezzi
 
PDF
Intro to grunt
春行 常
 
PDF
500 Startups Tour
Ray Grieselhuber
 
PPTX
Photography
sdstewart0411
 
PPT
YUI 3 Loading Strategies - YUIConf2010
Caridy Patino
 
PDF
YUI 3: Below the Surface
Luke Smith
 
Introducing YUI 3 AutoComplete
Ryan Grove
 
การกำหนดการเชื่อมโยงสไลด์
Aon Chainarong
 
K metrics
Ramveer Singh
 
Business Coaching
Jon Baker
 
เทคนิคการทําภาพขอบจุดกระจาย
Aon Chainarong
 
เทคนิคการทําภาพขอบจุดกระจาย
Aon Chainarong
 
Stem Cell Presentation
Redpath
 
Plastic bags dengours for human
Kamran Akhtar
 
ประวัติส่วนตัวที่น่ารู้ของ
Aon Chainarong
 
Llibertat power
Marc Garcia Jané
 
Rlling Background Presentation
Jon Baker
 
Happy first birthday, Rainmaker Consulting!
Rainmaker Consulting, LLC
 
เทคนิคการทําภาพขอบจุดกระจาย
Aon Chainarong
 
Goals suck
Jon Baker
 
Livestand : Learnings. YUI Conf 2011
sdezzi
 
Intro to grunt
春行 常
 
500 Startups Tour
Ray Grieselhuber
 
Photography
sdstewart0411
 
YUI 3 Loading Strategies - YUIConf2010
Caridy Patino
 
YUI 3: Below the Surface
Luke Smith
 
Ad

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

PDF
GateIn - Presented at Atlanta JUG on 1/19/2010
Wesley Hales
 
PDF
CSS3: The Future is Now at Drupal Design Camp Boston
Jen Simmons
 
PDF
通用JS时代的模块机制和编译工具
Dexter Yang
 
PDF
mobile + location based design
George Hayes
 
PDF
Dojo Basics Js UserGroup Chicago
wolframkriesing
 
PDF
Drupalcon keynote: Open Source and Open Data in the age of the cloud
Tim O'Reilly
 
PDF
Agile Enterprise Devops and Cloud - Interop 2010 NYC
Chef Software, Inc.
 
PDF
Go! Go! Gadgets. Writing an OpenSocial Application
Mark Halvorson
 
PDF
from Realtime Operating systems to unlocking iPhones in less than 30 slides
Kai Aras
 
PDF
Responsive Design for the Web
jonbuda
 
PDF
Mobile Device as a Smart Metering Display
Alexander Lobunets
 
PDF
Presentation to wdim_students
Scott Motte
 
PDF
Fixing The Media #Fleet09
Jo Caudron
 
PDF
A Match Made In The Cloud
Chapter Three
 
PDF
CSS3 now
Johan Ronsse
 
PDF
We're not designing posters, here!
André Luís
 
PDF
Muruca: Linked Data in Art History
Michele Barbera
 
PDF
Wikis for Collaborative Learning
P Parson
 
PDF
Internet of Things - Why should users care?
Jo Caudron
 
GateIn - Presented at Atlanta JUG on 1/19/2010
Wesley Hales
 
CSS3: The Future is Now at Drupal Design Camp Boston
Jen Simmons
 
通用JS时代的模块机制和编译工具
Dexter Yang
 
mobile + location based design
George Hayes
 
Dojo Basics Js UserGroup Chicago
wolframkriesing
 
Drupalcon keynote: Open Source and Open Data in the age of the cloud
Tim O'Reilly
 
Agile Enterprise Devops and Cloud - Interop 2010 NYC
Chef Software, Inc.
 
Go! Go! Gadgets. Writing an OpenSocial Application
Mark Halvorson
 
from Realtime Operating systems to unlocking iPhones in less than 30 slides
Kai Aras
 
Responsive Design for the Web
jonbuda
 
Mobile Device as a Smart Metering Display
Alexander Lobunets
 
Presentation to wdim_students
Scott Motte
 
Fixing The Media #Fleet09
Jo Caudron
 
A Match Made In The Cloud
Chapter Three
 
CSS3 now
Johan Ronsse
 
We're not designing posters, here!
André Luís
 
Muruca: Linked Data in Art History
Michele Barbera
 
Wikis for Collaborative Learning
P Parson
 
Internet of Things - Why should users care?
Jo Caudron
 
Ad

Recently uploaded (20)

PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
PPTX
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PPTX
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Generative AI vs Predictive AI-The Ultimate Comparison Guide
Lily Clark
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Agile Chennai 18-19 July 2025 | Workshop - Enhancing Agile Collaboration with...
AgileNetwork
 
Farrell_Programming Logic and Design slides_10e_ch02_PowerPoint.pptx
bashnahara11
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Agile Chennai 18-19 July 2025 | Emerging patterns in Agentic AI by Bharani Su...
AgileNetwork
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Researching The Best Chat SDK Providers in 2025
Ray Fields
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 

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 [email protected] YUI Monday, December 20, 2010