SlideShare une entreprise Scribd logo
1  sur  20
Télécharger pour lire hors ligne
Building Faster Mobile Websites
the nuts and bolts of hitting that 1000 millisecond "time to glass" target ...

WebRTC
Jacky Lopez
Make The Web Fast, Google
What's the impact of slow sites?
Lower conversions and engagement, higher bounce rates...
Web Search Delay Experiment

                                           Type of Delay     Delay (ms)          Duration (weeks)    Impact on Avg.
                                                                                                     Daily Searches

                                           Pre-header        50                  4                   Not measurable

                                           Pre-header        100                 4                   -0.20%

                                           Post-header       200                 6                   -0.59%

                                           Post-header       400                 6                   -0.59%

                                           Post-ads          200                 4                   -0.30%




                                            •   The cost of delay increases over time and persists
                                            •   Delays under half a second impact business metrics
                                            •   "Speed matters" is not just lip service




Performance Related Changes and their User Impact                                                              @Jacky_Lopez
Server Delays Experiment




•   Strong negative impacts
•   Roughly linear changes with increasing delay
•   Time to Click changed by roughly double the delay


Performance Related Changes and their User Impact       @Jacky_Lopez
How speed affects bounce rate




   Yo ho ho and a few billion pages of RUM   @Jacky_Lopez
So, how are we doing today?
Okay, I get it, speed matters... but, are we there yet?
Usability Engineering 101


Delay           User reaction
                                          Stay under 250 ms
0 - 100 ms      Instant
                                          to feel "fast".
100 - 300 ms    Feels sluggish

300 - 1000 ms   Machine is working...     Stay under 1000
1 s+            Mental context switch     ms to keep users
                                          attention.
10 s+           I'll come back later...




                                                       @Jacky_Lopez
Desktop
                                                                                 Median: ~2.7s
                                                                                 Mean: ~6.9s

                                                                  Mobile *
                                                                                 Median: ~4.8s
                                                                                 Mean: ~10.2s


                                                                  * optimistic




How Fast Are Websites Around The World? - Google Analytics Blog                                  @Jacky_Lopez
Content Type                  Avg # of Requests   Avg size
             HTML                          6                   39 kB
             Images                        39                  490 kB
             Javascript                    10                  142 kB
             CSS                           3                   27 kB



HTTP Archive - Mobile Trends (Feb, 2013)                                  @Jacky_Lopez
For many, mobile is the one and
only internet device


       Country         Mobile-only users
       Egypt                  70%
       India                  59%
       South Africa           57%
       Indonesia              44%
       United States          25%




onDevice Research                          @Jacky_Lopez
The network will save us!
1000 ms is plenty of time.. 4G will fix everything! Right, right?




 * Nope.
Mobile, oh Mobile...

"Users of the Sprint 4G network can expect to experience average speeds of 3 Mbps to 6
Mbps download and up to 1.5 Mbps upload with an average latency of 150 ms. On the Sprint
3G network, users can expect to experience average speeds of 600 Kbps - 1.4 Mbps download
and 350 Kbps - 500 Kbps upload with an average latency of 400 ms."




                   3G                    4G

Sprint           400 ms                150 ms

AT&T           150 - 400 ms          100 - 200 ms




                                                                                            @Jacky_Lopez
The (short) life of our 1000 ms budget

                            250 ms RTT




                                           250 ms RTT   250 ms RTT

                                                                     @Jacky_Lopez
  Let's assume (an optimistic) 250 ms RTT...
1.   Unload the DOM
2.   DNS resolution
3.   TCP handshake
4.   Send request, wait for response      x 60
                                          (doh)
5.   Parse response
6.   Request sub-resources (see step 1)
7.   Execute scripts, apply CSS rules



This won't work...
If we can't get the entire page to paint in <1000 ms... Can we get the
above the fold to content visible instead? Yes! Albeit with careful
engineering...

1. Inline just the required resources for above the fold
    o Both JavaScript and CSS

1. Defer the rest until later, after the above the fold is visible

1. ...
2. Profit




Make your mobile pages render in under one second
PageSpeed to the rescue!
all of this stuff can and should be automated!




 * Nope.
Why aren’t all web-sites fast?

                                  SPEED                 EASE OF MAINTENANCE
   Inlined / sprites / minified resources               Simple development & deployment flow
                    Long cache lifetimes                Ability to rapidly deploy changes to users
   Exploit features in modern browsers                  Support all browsers
          Track latest WPO techniques                   Focus on content




                                    Use automated tools!
                     If it can be automated, it should be. Performance optimization is
                     no different. By removing the burden from the team, you also
                     enable a wider range of dynamic optimization.
mod_pagespeed === performance JIT
                                                           +


                                    mod_pagespeed is an open-source Apache
                                    module, developed and maintained by Google,
                                    which automatically rewrites and optimizes your
                                    web-pages and associated assets on the page.

                                     •   40+ optimization filters
                                     •   highly configurable
                                     •   single server and cluster friendly
                                     •   CDN and cache friendly




   http://modpagespeed.com/
Things you don't need to do... *
•   Change your content generation workflow
•   Change your CSS / JS / HTML or other markup
•   Run manual compression or add build steps
•   ...


* when using mod_pagespeed
Contact us to learn more:
(805) 467.6777
j@jackylopez.com

Contenu connexe

Dernier

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 

En vedette

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

En vedette (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Making the mobile website faster

  • 1. Building Faster Mobile Websites the nuts and bolts of hitting that 1000 millisecond "time to glass" target ... WebRTC Jacky Lopez Make The Web Fast, Google
  • 2. What's the impact of slow sites? Lower conversions and engagement, higher bounce rates...
  • 3. Web Search Delay Experiment Type of Delay Delay (ms) Duration (weeks) Impact on Avg. Daily Searches Pre-header 50 4 Not measurable Pre-header 100 4 -0.20% Post-header 200 6 -0.59% Post-header 400 6 -0.59% Post-ads 200 4 -0.30% • The cost of delay increases over time and persists • Delays under half a second impact business metrics • "Speed matters" is not just lip service Performance Related Changes and their User Impact @Jacky_Lopez
  • 4. Server Delays Experiment • Strong negative impacts • Roughly linear changes with increasing delay • Time to Click changed by roughly double the delay Performance Related Changes and their User Impact @Jacky_Lopez
  • 5. How speed affects bounce rate Yo ho ho and a few billion pages of RUM @Jacky_Lopez
  • 6. So, how are we doing today? Okay, I get it, speed matters... but, are we there yet?
  • 7. Usability Engineering 101 Delay User reaction Stay under 250 ms 0 - 100 ms Instant to feel "fast". 100 - 300 ms Feels sluggish 300 - 1000 ms Machine is working... Stay under 1000 1 s+ Mental context switch ms to keep users attention. 10 s+ I'll come back later... @Jacky_Lopez
  • 8. Desktop Median: ~2.7s Mean: ~6.9s Mobile * Median: ~4.8s Mean: ~10.2s * optimistic How Fast Are Websites Around The World? - Google Analytics Blog @Jacky_Lopez
  • 9. Content Type Avg # of Requests Avg size HTML 6 39 kB Images 39 490 kB Javascript 10 142 kB CSS 3 27 kB HTTP Archive - Mobile Trends (Feb, 2013) @Jacky_Lopez
  • 10. For many, mobile is the one and only internet device Country Mobile-only users Egypt 70% India 59% South Africa 57% Indonesia 44% United States 25% onDevice Research @Jacky_Lopez
  • 11. The network will save us! 1000 ms is plenty of time.. 4G will fix everything! Right, right? * Nope.
  • 12. Mobile, oh Mobile... "Users of the Sprint 4G network can expect to experience average speeds of 3 Mbps to 6 Mbps download and up to 1.5 Mbps upload with an average latency of 150 ms. On the Sprint 3G network, users can expect to experience average speeds of 600 Kbps - 1.4 Mbps download and 350 Kbps - 500 Kbps upload with an average latency of 400 ms." 3G 4G Sprint 400 ms 150 ms AT&T 150 - 400 ms 100 - 200 ms @Jacky_Lopez
  • 13. The (short) life of our 1000 ms budget 250 ms RTT 250 ms RTT 250 ms RTT @Jacky_Lopez Let's assume (an optimistic) 250 ms RTT...
  • 14. 1. Unload the DOM 2. DNS resolution 3. TCP handshake 4. Send request, wait for response x 60 (doh) 5. Parse response 6. Request sub-resources (see step 1) 7. Execute scripts, apply CSS rules This won't work...
  • 15. If we can't get the entire page to paint in <1000 ms... Can we get the above the fold to content visible instead? Yes! Albeit with careful engineering... 1. Inline just the required resources for above the fold o Both JavaScript and CSS 1. Defer the rest until later, after the above the fold is visible 1. ... 2. Profit Make your mobile pages render in under one second
  • 16. PageSpeed to the rescue! all of this stuff can and should be automated! * Nope.
  • 17. Why aren’t all web-sites fast? SPEED EASE OF MAINTENANCE Inlined / sprites / minified resources Simple development & deployment flow Long cache lifetimes Ability to rapidly deploy changes to users Exploit features in modern browsers Support all browsers Track latest WPO techniques Focus on content Use automated tools! If it can be automated, it should be. Performance optimization is no different. By removing the burden from the team, you also enable a wider range of dynamic optimization.
  • 18. mod_pagespeed === performance JIT + mod_pagespeed is an open-source Apache module, developed and maintained by Google, which automatically rewrites and optimizes your web-pages and associated assets on the page. • 40+ optimization filters • highly configurable • single server and cluster friendly • CDN and cache friendly http://modpagespeed.com/
  • 19. Things you don't need to do... * • Change your content generation workflow • Change your CSS / JS / HTML or other markup • Run manual compression or add build steps • ... * when using mod_pagespeed
  • 20. Contact us to learn more: (805) 467.6777 j@jackylopez.com