SlideShare une entreprise Scribd logo
1  sur  68
Télécharger pour lire hors ligne
Web optimisation in the
age of mobile
@stelian
* designer
* front-end dev
* web optimisator?
http://stelian.firez.be
"A site may look
<mobile optimised>, but
it’s not if it takes 14
seconds to download."
— Jason Grigsby
How big is mobile?
Mobile vs. Desktop 2013
0
25
50
75
100
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Desktop
Mobile
— Google
What do people expect?
85%expect sites to load
at least as fast on their
mobile device as they
do on their home
computer
— IBM Tealeaf
How much does it cost to
not optimize for web performance?
+500ms -1.2% revenue
icons by Rohan Gupta and Pham Thi Dieu Linh
+500ms -3% traffic
icons by Rohan Gupta and Maria Maldonado
+100ms -1% sales
icons by Rohan Gupta and Zach VanDeHey
Improving the boot time on the Macintosh
would save lives.
Gmail users see about
61 years
of loading bar
every day
— Google(2012)
80-90%
of the end-user response time
is spent on the
front-end
— Steve Souders
Low effort
techniques
http://www.reddit.com/r/funny/comments/18gbep/queue_thai_level/
Thou shalt not redirect!
* m.yourwebsite.com
* Google search results penalty
Enable GZip compression
* on compressible formats
* htaccess HTML5 Boilerplate
* gzip locally if server compression unavailable
- use Zopfli(Google)
Minify CSS and JS and SVG
Cache aggressively
* htaccess HTML5 Boilerplate
Optimise images
* imageoptim
Medium effort
techniques
https://youtu.be/Oql972Jht5k
Choose the
right image format
Images
HTML
Other
Flash
Stylesheets
Scripts
65%
The guts of the web
JPEG
* photos, a lot of pixels
* 80-90% quality is sufficient*
WebP
* young format
* partial support
PNG-24
* high-quality needed
* alpha transparency
PNG-8
* low number of pixels
* limit number of colours
SVG
* fallback required for older browsers
Optimise images further
* jpegmini, imagealpha
original (PNG24)
2138 × 2138
179 KB
original
2138 × 2138
179 KB
resized
500 × 500
41 KB
original
2138 × 2138
179 KB
resized + imageoptim
500 × 500
28 KB
original
2138 × 2138
179 KB
resized + imagealpha + imageoptim (PNG8)
500 × 500
14 KB
original
2138 × 2138
179 KB
SVG
∞
29 KB
original
2138 × 2138
179 KB
SVG + SVGO
∞
16 KB
original
2138 × 2138
179 KB
SVG + SVGO + Gzip
∞
7 KB
+160KB +12% bounce rate
Use image sprites
* spritesmith
SVG stacks
* experimental
Icon fonts
* fontcustom, icomoon, fontastic
"Every HTTP request is a
gamble. A chance to fail."
— Scott Jehl
6-8* connections
per hostname
http://cacm.acm.org/magazines/2012/12/157870-spdying-up-the-web/abstract
Use CDN
High effort
techniques
http://www.break.com/pictures/this-bartender-deserves-the-biggest-tip-ever-2015783
Responsive images
* <picture>…
* Picturefill
Prioritise visible content
Now
Later
http://drbl.in/ljct
Optimise CSS delivery
* small, critical inline CSS
* 1 external CSS loaded with JS
Prevent render-blocking JS
* small, critical inline JS
* use async for external JS
https://docs.google.com/presentation/d/1CeZtuz2Tn3EdxYtTRzPGCXMOs3flk__YuLr4g0SnsGw/edit?
pli=1#slide=id.g179ab8815_0182
dribbble.com
Filmstrip view
— webpagetest.org
Performance
perception
Instgram
https://speakerdeck.com/mikeyk/secrets-to-lightning-fast-mobile-design
Instgram
https://speakerdeck.com/mikeyk/secrets-to-lightning-fast-mobile-design
iPhone
The iPhone saves a screenshot of every app when it
closes. So when you relaunch the app it loads that
screenshot first.
Amazon
Early example of priority loading
Facebook
Facebook is slow iPhone is slow
http://mercury.io/the-psychology-of-waiting-loading-animations-and-facebook
Testing tools
* pagespeed
* webpagetest.org
More stuff to read
• A report on the Mobile Customer Experience(PDF)
• How Loading Time Affects Your Bottom Line
• Facebook pages that are 500ms slower result in a 3% drop-off in traffic (PDF)
• If Google increased page load by 500ms it would cost them 1.2% of their revenue
• Every 100ms of latency costs Amazon 1% of profit
• For Etsy, adding 160KB of images to a page increased bounce rate by 12% on mobile devices
• Steve Jobs: Improving the boot time on the Macintosh would save lives.
• Users spend a combined total of 61 years every single day watching the Gmail loading bar
• The Performance Golden Rule
• Google Warns Smartphone Searchers About Homepage Redirects
• GZIP is not enough!(video)
• What the web is made of(and many more stats)
• Clever JPEG Optimization Techniques
• Clever PNG Optimization Techniques
• Facebook tries Google's WebP image format; users squawk
• Animated WebP - how to convert animated GIF to WebP and save up to 90% bandwidth
• SVG Stacks
• Evaluating the Performance of SPDY-enabled Web Servers
• Better Responsive Images With the picture Element
• How to prioritize visible content
• Tailoring CSS for performance
Tools
• HTML5 Boilerplate
• Zopfli
• SVGO
• grunt-svgmin
• ImageOptim
• ImageAlpha
• JPEGmini
• Compressor.io
• Spritesmith
• Font Custom
• IcoMoon
• Fontastic
• Picturefill
• Control.js
• yepnope

Contenu connexe

En vedette

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
 

En vedette (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...
 

Web optimisation in the age of mobile