SlideShare una empresa de Scribd logo
1 de 31
Mobile Web Performance Optimization Guy Podjarny, CTO
Agenda Why Web Performance Matters And why Mobile Web Performance Matters Web Performance Optimization How Mobile is different than Desktop Mobile Optimization Techniques Measuring Mobile Performance Summary
Why Web Performance Matters Site Speed Impacts Revenue Increases conversions and reduces abandonment, across industries ,[object Object]
Assumed to affect other search engines as well3 Shopzilla: 5s load time improvement KISSMetrics: Page Abandonment vs. Load Time
Why Mobile Web Performance Matters Mobile Browsing is Exploding Expected to pass desktop browsing by 2014 4 Mobile Users are Impatient 58% Except faster or equal speeds to desktop Only 11% accept real delays
Front-End vs. Back-End Performance Back-End Performance Time to generate page 10% of page load time Front-End Performance Network Time Browser Time 90% of page load time 5 Source: http://blog.newrelic.com
Front-End Optimization FEO: Front-End Optimization Addresses 90% of the problem Keys to FEO: Reduce Requests Reduce Bytes Do More in Parallel 6
FEO in Mobile vs. Desktop Mobile Browsing has unique challenges Different types of Mobile WPO techniques Unique to mobile More important on mobile Tuned for mobile Equally important on desktop and mobile We’ll take a holistic approach instead Describe the mobile challenges Describe the solutions, using all of the above 7
Mobile front end optimization 8
Mobile Web Performance Traits Challenges: Slower & Asymmetric network Different Connection Model Weaker CPU Smaller Caches Form Factor vs. Platform Compatibility Opportunities: Smaller screen size Broad HTML5 Support Relatively new browsers (no IE6 equivalent…) 9
Slower & Asymetric Network Download Speed 3x slower than DSL/Cable Upload Speed 5x slower than Cable Similar properties to DSL Low Reliability 17% of connections fail to maintain reasonable speed High initial connection cost Average 2.5 seconds Blaze study shows:Number of reqs is the top slowdown factor on mobile Total number of bytes the top factor on desktop 10
Slow Network Solution: Reduce Reqs Consolidate CSS & JS Files Inline small CSS & JS  Download size impact is minor after gzip Especially useful for light mobile sites Embed CSS Images into CSS  Using data URIs (data:image/png;base64,…) Data URIs supported by all major mobile browsers Only load images as they scroll into view Highest impact on smaller screens 11
Slow Network Solution: Reduce Bytes Resize images to screen size Desktop resolution: 85% are over 1024x768 Recent mobile resolution: 480x360(Torch), 800x480 (Nexus S), 960x640(iPhone 4),  Shouldn’t send the same image to both Properly compress images Enable lossless compression, drop metadata Avoid excessive image quality, it doesn’t show Enable gzip Compression All mobile browsers that matter support gzip 12
Different Connection Model Small Max # Connections Android, Blackberry, Nokia Less max conn on IE Mobile HTTP Pipelining on Android Only browser to do so? Expensive Connections Slower Hardware Slower Network 13
Different Connection Model: Solutions Reduce domain sharding 2-3 shards on iOS No sharding on other devices Reduce 304 responses Wasteful requests, wasteful connections Use versioning with far future expiration Verify support for HTTP Pipelining Most major web servers support it today 14
Weaker CPU = Slower JavaScript Results of SunSpider JavaScript benchmark Measured in duration, lower is better Impacts evaluation of JavaScript too Estimated at  1ms per KB Seems to slow down image rendering as well Seen in Blaze Study, still being verified 15
Weaker CPU Solutions Make JavaScript Async to Page Load Download, eval and exec block page load Async JS avoids delays to rest of page Remove unused code browser-specific code, full 3rd party libraries, Flash… Defer evaluation of JS not needed for load Fetch via XHR Fetch via Iframe Serve in HTML comment, eval on-demand 16
Smaller Caches Persistent Cache Sizes After Browser Process Restart iOS Memory Cache varies (20-100 MB for iOS 4.3) Average mobile page size is ~400KB Mobile users browse for 74 mins/day on average Desktop users visit 88 sites/day, mobile likely similar Your page not likely to be in the cache tomorrow 17
More Mobile Cache Problems Older phones strongly limit individual file size iOS 3.2 only caches pages under 25KB unzipped Cache eviction policy not simple Not a simple Least-Recently-Used Seem to prefer far-future expiry dates Android cacheability depends on device Above and beyond the version Cache eviction policy may change as well 18
Smaller Cache Solution: localStorage Use HTML5 persistent storage for caching Called localStorage Available on all major mobile platforms Doesn’t expire  Survives browser reset and power cycle Size limit is usually ~5MB Most useful for caching JavaScript & CSS files Using for images will quickly consume the 5MB Implementation Tips Ensure proper version control and clear old items Handle case of not enough space Ideally create a Least-Recently-Used Cache In addition, use far-future expiry dates 19
Optimizing for Form Factor vs OS Mobile OSes impose technical limitations Notably having no or poor Flash support Simplifying site to match smaller screen helps Mobile sites are usually simpler and faster Tablets carry the same limitations But take away the “mobile site” solution Result: Tablets force us to truly improve perf But a mobile site for phones can still help usability 20
Form Factor vs OS: Solutions Don’t just minimize content – fix performance Mobile websites are for usability, not perf Create an adaptive website E.g. Determine image size by client width Download code on-demand E.g. Don’t download desktop JS in mobile site Progressive Design helps address usability We focus on performance… 21
Measuring mobile web perf 22
Mobitest Mobile Web Performance Measurement Free Online Service: http://blaze.io/mobile/ 23
Different Locations 3 Locations Ottawa Amsterdam Dulles Sponsored Non-Ottawa Locations Aaron Peters Patrick Meenan(WebPageTest) Interested in hosting a location? 24
Different Devices 25
Measures Page Load Measures Load Time & Page Size Supports Video Visualization Calculates Load Time Percentiles Based on past results, per device 26
Details Results Per Run Supports Multiple Runs WPT Waterfalls Detailed HAR Viewer 27
Mobile FEO – Summary  Reduce Requests Consolidate CSS & JS  Embed CSS images in CSS Inline small CSS & JS files Load images only when visible Reduce Bytes Resize images to screen size Properly compress images Enable gzip Compression Minimize Connections Manage domain sharding by client Reduce 304 responses Verify support for HTTP Pipelining Defer and minimize JavaScript Download and Execute JavaScript asynchronously  Remove unused code Defer evaluation of JS not required during page load Cache using localStorage Primarily for CSS & JS Files Use far-future expiry dates Measure your changeshttp://blaze.io/mobile/ 28
Blaze Automated Front-End Optimization Blaze automates Front-End Optimization No Software, Hardware or Code Changes needed All the pitfalls and complexities taken care of Blaze optimizes Mobile & Desktop Websites Applying the right optimizations for each client Contact us for a free reporton how much faster yourmobile site can be at contact@blaze.io 29
30 Questions? Contact us at contact@blaze.io Thank You!

Más contenido relacionado

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
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 WorkerThousandEyes
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 

Último (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
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...
 

Mobile Web Performance Optimization Tips and Tricks

  • 1. Mobile Web Performance Optimization Guy Podjarny, CTO
  • 2. Agenda Why Web Performance Matters And why Mobile Web Performance Matters Web Performance Optimization How Mobile is different than Desktop Mobile Optimization Techniques Measuring Mobile Performance Summary
  • 3.
  • 4. Assumed to affect other search engines as well3 Shopzilla: 5s load time improvement KISSMetrics: Page Abandonment vs. Load Time
  • 5. Why Mobile Web Performance Matters Mobile Browsing is Exploding Expected to pass desktop browsing by 2014 4 Mobile Users are Impatient 58% Except faster or equal speeds to desktop Only 11% accept real delays
  • 6. Front-End vs. Back-End Performance Back-End Performance Time to generate page 10% of page load time Front-End Performance Network Time Browser Time 90% of page load time 5 Source: http://blog.newrelic.com
  • 7. Front-End Optimization FEO: Front-End Optimization Addresses 90% of the problem Keys to FEO: Reduce Requests Reduce Bytes Do More in Parallel 6
  • 8. FEO in Mobile vs. Desktop Mobile Browsing has unique challenges Different types of Mobile WPO techniques Unique to mobile More important on mobile Tuned for mobile Equally important on desktop and mobile We’ll take a holistic approach instead Describe the mobile challenges Describe the solutions, using all of the above 7
  • 9. Mobile front end optimization 8
  • 10. Mobile Web Performance Traits Challenges: Slower & Asymmetric network Different Connection Model Weaker CPU Smaller Caches Form Factor vs. Platform Compatibility Opportunities: Smaller screen size Broad HTML5 Support Relatively new browsers (no IE6 equivalent…) 9
  • 11. Slower & Asymetric Network Download Speed 3x slower than DSL/Cable Upload Speed 5x slower than Cable Similar properties to DSL Low Reliability 17% of connections fail to maintain reasonable speed High initial connection cost Average 2.5 seconds Blaze study shows:Number of reqs is the top slowdown factor on mobile Total number of bytes the top factor on desktop 10
  • 12. Slow Network Solution: Reduce Reqs Consolidate CSS & JS Files Inline small CSS & JS Download size impact is minor after gzip Especially useful for light mobile sites Embed CSS Images into CSS Using data URIs (data:image/png;base64,…) Data URIs supported by all major mobile browsers Only load images as they scroll into view Highest impact on smaller screens 11
  • 13. Slow Network Solution: Reduce Bytes Resize images to screen size Desktop resolution: 85% are over 1024x768 Recent mobile resolution: 480x360(Torch), 800x480 (Nexus S), 960x640(iPhone 4), Shouldn’t send the same image to both Properly compress images Enable lossless compression, drop metadata Avoid excessive image quality, it doesn’t show Enable gzip Compression All mobile browsers that matter support gzip 12
  • 14. Different Connection Model Small Max # Connections Android, Blackberry, Nokia Less max conn on IE Mobile HTTP Pipelining on Android Only browser to do so? Expensive Connections Slower Hardware Slower Network 13
  • 15. Different Connection Model: Solutions Reduce domain sharding 2-3 shards on iOS No sharding on other devices Reduce 304 responses Wasteful requests, wasteful connections Use versioning with far future expiration Verify support for HTTP Pipelining Most major web servers support it today 14
  • 16. Weaker CPU = Slower JavaScript Results of SunSpider JavaScript benchmark Measured in duration, lower is better Impacts evaluation of JavaScript too Estimated at 1ms per KB Seems to slow down image rendering as well Seen in Blaze Study, still being verified 15
  • 17. Weaker CPU Solutions Make JavaScript Async to Page Load Download, eval and exec block page load Async JS avoids delays to rest of page Remove unused code browser-specific code, full 3rd party libraries, Flash… Defer evaluation of JS not needed for load Fetch via XHR Fetch via Iframe Serve in HTML comment, eval on-demand 16
  • 18. Smaller Caches Persistent Cache Sizes After Browser Process Restart iOS Memory Cache varies (20-100 MB for iOS 4.3) Average mobile page size is ~400KB Mobile users browse for 74 mins/day on average Desktop users visit 88 sites/day, mobile likely similar Your page not likely to be in the cache tomorrow 17
  • 19. More Mobile Cache Problems Older phones strongly limit individual file size iOS 3.2 only caches pages under 25KB unzipped Cache eviction policy not simple Not a simple Least-Recently-Used Seem to prefer far-future expiry dates Android cacheability depends on device Above and beyond the version Cache eviction policy may change as well 18
  • 20. Smaller Cache Solution: localStorage Use HTML5 persistent storage for caching Called localStorage Available on all major mobile platforms Doesn’t expire Survives browser reset and power cycle Size limit is usually ~5MB Most useful for caching JavaScript & CSS files Using for images will quickly consume the 5MB Implementation Tips Ensure proper version control and clear old items Handle case of not enough space Ideally create a Least-Recently-Used Cache In addition, use far-future expiry dates 19
  • 21. Optimizing for Form Factor vs OS Mobile OSes impose technical limitations Notably having no or poor Flash support Simplifying site to match smaller screen helps Mobile sites are usually simpler and faster Tablets carry the same limitations But take away the “mobile site” solution Result: Tablets force us to truly improve perf But a mobile site for phones can still help usability 20
  • 22. Form Factor vs OS: Solutions Don’t just minimize content – fix performance Mobile websites are for usability, not perf Create an adaptive website E.g. Determine image size by client width Download code on-demand E.g. Don’t download desktop JS in mobile site Progressive Design helps address usability We focus on performance… 21
  • 24. Mobitest Mobile Web Performance Measurement Free Online Service: http://blaze.io/mobile/ 23
  • 25. Different Locations 3 Locations Ottawa Amsterdam Dulles Sponsored Non-Ottawa Locations Aaron Peters Patrick Meenan(WebPageTest) Interested in hosting a location? 24
  • 27. Measures Page Load Measures Load Time & Page Size Supports Video Visualization Calculates Load Time Percentiles Based on past results, per device 26
  • 28. Details Results Per Run Supports Multiple Runs WPT Waterfalls Detailed HAR Viewer 27
  • 29. Mobile FEO – Summary Reduce Requests Consolidate CSS & JS Embed CSS images in CSS Inline small CSS & JS files Load images only when visible Reduce Bytes Resize images to screen size Properly compress images Enable gzip Compression Minimize Connections Manage domain sharding by client Reduce 304 responses Verify support for HTTP Pipelining Defer and minimize JavaScript Download and Execute JavaScript asynchronously Remove unused code Defer evaluation of JS not required during page load Cache using localStorage Primarily for CSS & JS Files Use far-future expiry dates Measure your changeshttp://blaze.io/mobile/ 28
  • 30. Blaze Automated Front-End Optimization Blaze automates Front-End Optimization No Software, Hardware or Code Changes needed All the pitfalls and complexities taken care of Blaze optimizes Mobile & Desktop Websites Applying the right optimizations for each client Contact us for a free reporton how much faster yourmobile site can be at contact@blaze.io 29
  • 31. 30 Questions? Contact us at contact@blaze.io Thank You!
  • 32. External Sources 31 http://www.mobile-broadband-reviews.com/us-cellular-3g-speed.html http://www.google.com/events/io/2011/sessions/use-page-speed-to-optimize-your-web-site-for-mobile.html http://www.pcworld.com/zoom?id=167391&page=1&zoomIdx=1 http://www.blaze.io/mobile/13-of-top-websites-return-mobile-content-to-android-tablet/ http://www.stevesouders.com/blog/2010/07/12/mobile-cache-file-sizes/ http://www.yuiblog.com/blog/2010/07/12/mobile-browser-cache-limits-revisited/ http://blog.flurry.com/bid/63907/Mobile-Apps-Put-the-Web-in-Their-Rear-view-Mirror http://blog.newrelic.com/wp-content/uploads/infog_061611.png http://blog.kissmetrics.com/loading-time/

Notas del editor

  1. http://www.google.com/events/io/2011/sessions/use-page-speed-to-optimize-your-web-site-for-mobile.htmlhttp://www.pcworld.com/zoom?id=167391&page=1&zoomIdx=1