SlideShare a Scribd company logo
Making Mobile Sites Faster
@andydavies
#Port80, May 2013
http://www.flickr.com/photos/b-tal/156919562
Imagine… later today…
http://www.flickr.com/photos/andrew_bolin/3909446250
How long would you wait here?
http://www.flickr.com/photos/oatsy40/6198212129
Some of this advice will expire
http://www.flickr.com/photos/21560098@N06/7127570205
http://www.flickr.com/photos/szene/8220511232
So many devices… lots of variation
Differing Network Environments
GPRS EDGE 3G 4G WiFi
Faster, Lower Latency???
Special networks…
Conference, Hotel & Coffee shop WiFi
Latency is a huge issue
“In 2012, the average worldwide RTT to
Google is still ~100ms, and ~50-60ms within
the US.”
http://www.igvita.com/2012/07/19/latency-the-new-web-performance-bottleneck/
“we are looking at 100-1000ms RTT range
on mobile”
Ilya Grigorik
3G Radio Resource Control
http://web.eecs.umich.edu/~fengqian/paper/3g_imc10.pdf
IDLE CELL_FACH
CELL_DCH Idle for 5s
Idle for 12s
1-2s delay!
Exact timings vary and depend on carrier NOT device
1s delay
http://www.flickr.com/photos/fastjack/2943793818
It’s not just about speed
Some things block
http://www.flickr.com/photos/timo/3995227
http://www.flickr.com/photos/wiertz/6922984303
What’s needed to render the page?
Fast mobile sites have short waterfalls
Do you deploy your CSS like this?
<link href="screen.core.css" />
<link media="(min-width: 320px)" href="s320.css" />
<link media="(min-width: 480px)" href="s480.css" />
<link media="(min-width: 750px)" href="s750.css" />
<link media="(min-width: 960px)" href="s960.css" />
Do you really need that font?
http://www.flickr.com/photos/symphoney/76513801
And what about those scripts?
http://www.flickr.com/photos/alikins/4439062727
Remember GZIP and Caching
http://www.flickr.com/photos/_flood_/6732863457
Re-Use TCP Connections - HTTP Keep-Alive
(HTML5 Boilerplate has example settings for Apache)
Orange segments are
new TCP connections
being opened
Beware of Redirects
367ms and still no HTML!
Set a cache lifetime and make them private
#OneLessJPG
Misquoted a lot recently, original quote
refers to relative sizes of JS libraries
Images
Scripts
Stylesheets
Other
HTML
Images are 70% of an ‘average’ mobile site
http://mobile.httparchive.org
Time to bury bitmapped images?
http://www.flickr.com/photos/tonyjcase/7183556158
Use vector graphics instead?
SVG: 12 KB vs PNG: 86KB
Heydings by Heydon Works
Icon fonts
&#x2605; ★
&#x2665; ♥
&#x2601; ☁
“Bog Standard Font”
&#x2606; ☆
Use CSS
border-radius: 20px;
background: linear-gradient(left, #f06, #ff0);
Some combinations produce poor paint performance
What if only a bitmap image will do?
http://www.flickr.com/photos/orkomedix/5026054826
Size images for the viewport
http://www.flickr.com/photos/emzee/139794246
Proposed srcset attribute
http://www.w3.org/html/wg/drafts/srcset/w3c-srcset/
<img src="beach-desktop.jpeg"
srcset="beach-mobile.jpeg 720w
beach-tablet.jpeg 1280w"
alt="The beach is gorgeous.">
image-set() is CSS equivalent
Compressive Images (experimental)
Double the dimensions but lower the quality
As images get smaller need to focus on subject
“Art Direction” - Jason Grigsby
http://www.flickr.com/photos/barackobamadotcom/5795228030
<picture>
<source media="(min-width: 45em)" src="large.jpg">
<source media="(min-width: 18em)" src="med.jpg">
<source src="small.jpg">
<img src="small.jpg" alt="">
<p>Accessible text</p>
</picture>
Proposed picture element
http://www.w3.org/TR/html-picture-element
Cache-Control: no-transform
Stop proxies recompressing your images
Unclear how many proxies follow the standard
Do you really want to do it by hand?
Can adapt format for visitor e.g.WebP
Automate generate image versions
http://www.flickr.com/photos/skrubu/4962771959
- CMS
- Scripts
- CDNs
- Dedicated services
We’re adapting on the client-side
http://seesparkbox.com
But we shouldn’t forget about the server
http://www.flickr.com/photos/getbutterfly/6317955134
device
width
Client Hints HTTP Header (proposed)
http://tools.ietf.org/html/draft-grigorik-http-client-hints-00
CH: dh=598, dw=384, dpr=2.0
device
height
device
pixel
ratio
! "ipinfo": {
! ! "ip_address":"212.183.128.252",
! !"ip_type":"Mapped",
! !"Network": {
! !! "organization":"vodafone limited",
! ! !"carrier":"vodafone limited",
! ! !"asn":25135,
! ! !"connection_type":"mobile wireless",
! ! !"line_speed":"low",
! ! !"ip_routing_type":"mobile gateway",
! ! !"Domain": {
! ! !! "tld":"net",
! ! !! "sld":"vodafone"
! ! !! }
! ! !},
Quova GeoPoint API
What if we could detect mobile connections?
cache-control: private
&
vary: user-agent
Managing Caching
But loading fast is only the start…
http://www.flickr.com/photos/foodthinkers/4442279870
Facebook artificially slowed down
scrolling from 60fps to 30fps
User Engagement Collapsed
So… what wrecks smoothness?
http://www.flickr.com/photos/18854914@N04/2216950328
“Rendering Without Lumpy Bits”
http://www.flickr.com/photos/marcthiele/8114191496
Don’t just rely on rules… learn how to measure
http://www.flickr.com/photos/chandramarsono/4324373384
http://www.flickr.com/photos/alesimages/4215559895
Thank You!
@andydavies
andy@asteno.com
http://slideshare.net/andydavies
http://www.flickr.com/photos/nzbuu/4093456029

More Related Content

PPT
The Need For Speed
Andy Davies
 
KEY
Speed is Essential for a Great Web Experience
Andy Davies
 
KEY
Sniffing the Mobile Context
Andy Davies
 
PDF
Web Performance Workshop - Velocity London 2013
Andy Davies
 
PDF
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Andy Davies
 
KEY
Faster Frontends
Andy Davies
 
PDF
Are Today’s Good Practices... Tomorrow’s Performance Anti-Patterns?
Andy Davies
 
PDF
Are Today's Good Practices… Tomorrow's Performance Anti-Patterns
Andy Davies
 
The Need For Speed
Andy Davies
 
Speed is Essential for a Great Web Experience
Andy Davies
 
Sniffing the Mobile Context
Andy Davies
 
Web Performance Workshop - Velocity London 2013
Andy Davies
 
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Andy Davies
 
Faster Frontends
Andy Davies
 
Are Today’s Good Practices... Tomorrow’s Performance Anti-Patterns?
Andy Davies
 
Are Today's Good Practices… Tomorrow's Performance Anti-Patterns
Andy Davies
 

What's hot (20)

KEY
Web Performance - A Whistlestop Tour
Andy Davies
 
PDF
Making Mobile Sites Faster
Andy Davies
 
PDF
The Case for HTTP/2 - Internetdagarna 2015 - Stockholm
Andy Davies
 
PDF
The web is too slow
Andy Davies
 
PDF
Mobile Web Performance - Getting and Staying Fast
Andy Davies
 
PDF
Speed is Essential for a Great Web Experience
Andy Davies
 
PDF
The Case for HTTP/2 - EpicFEL Sept 2015
Andy Davies
 
PDF
Speed is Essential for a Great Web Experience (Digicure - Copenhagen)
Andy Davies
 
PDF
Speed Matters!
Andy Davies
 
PDF
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Andy Davies
 
PDF
Web Page Test - Beyond the Basics
Andy Davies
 
PDF
What does the browser pre-loader do?
Andy Davies
 
PDF
EdgeConf - Page Load Performance Opening Talk
Andy Davies
 
PPT
Velocity 2010: Performance Impact, Part Two: More Findings from the Front Lin...
Strangeloop
 
PPTX
How fast are we going now?
Steve Souders
 
PDF
Speed is Essential for a Great Web Experience (Canvas Conf Version)
Andy Davies
 
PDF
Stefan Judis "Did we(b development) lose the right direction?"
Fwdays
 
PDF
Mobile Web Speed Bumps
Nicholas Zakas
 
PPTX
Design+Performance Velocity 2015
Steve Souders
 
PPTX
High Performance Mobile (SF/SV Web Perf)
Steve Souders
 
Web Performance - A Whistlestop Tour
Andy Davies
 
Making Mobile Sites Faster
Andy Davies
 
The Case for HTTP/2 - Internetdagarna 2015 - Stockholm
Andy Davies
 
The web is too slow
Andy Davies
 
Mobile Web Performance - Getting and Staying Fast
Andy Davies
 
Speed is Essential for a Great Web Experience
Andy Davies
 
The Case for HTTP/2 - EpicFEL Sept 2015
Andy Davies
 
Speed is Essential for a Great Web Experience (Digicure - Copenhagen)
Andy Davies
 
Speed Matters!
Andy Davies
 
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
Andy Davies
 
Web Page Test - Beyond the Basics
Andy Davies
 
What does the browser pre-loader do?
Andy Davies
 
EdgeConf - Page Load Performance Opening Talk
Andy Davies
 
Velocity 2010: Performance Impact, Part Two: More Findings from the Front Lin...
Strangeloop
 
How fast are we going now?
Steve Souders
 
Speed is Essential for a Great Web Experience (Canvas Conf Version)
Andy Davies
 
Stefan Judis "Did we(b development) lose the right direction?"
Fwdays
 
Mobile Web Speed Bumps
Nicholas Zakas
 
Design+Performance Velocity 2015
Steve Souders
 
High Performance Mobile (SF/SV Web Perf)
Steve Souders
 
Ad

Similar to Making Mobile Sites Faster (20)

PDF
Hacking Web Performance @ ForwardJS 2017
Maximiliano Firtman
 
PDF
Fast and Beautiful: Serving High Quality Photos at Scale on Flickr
Hugo Haas
 
PDF
Mobile First Responsive Design
Jason Grigsby
 
PDF
High Performance Images: Beautiful Shouldn't Mean Slow
Guy Podjarny
 
PDF
SMX Milan - Supercharge Responsive Design | Idea Evolver
Idea Evolver
 
PDF
Ben Seymour "Practical Responsive Images"
Digital Henley
 
PDF
Practical Responsive Images : Digital Henley : May 2015
Ben Seymour
 
PDF
Hacking Web Performance
Maximiliano Firtman
 
PDF
Hacking Web Performance
Maximiliano Firtman
 
PDF
Practical Responsive Images : from Breaking Borders
Ben Seymour
 
PPTX
Tom Bennet – BrightonSEO April 2016: Site Speed for content Marketers
Authoritas
 
PPTX
Iasi code camp 12 october 2013 responsive images in the wild-vlad zelinschi
Codecamp Romania
 
PDF
Hacking Web Performance 2019
Maximiliano Firtman
 
PDF
Delivering Optimal Images for Phones and Tablets on the Modern Web
Joshua Marantz
 
PDF
Deliver perfect images at any size
Anne Thomas
 
PDF
Deliver Perfect Images At Any Size
FITC
 
PDF
Next Steps in Responsive Design
Justin Avery
 
PDF
Web Performance Madness - brightonSEO 2018
Bastian Grimm
 
PDF
Hyperlight Websites - Chris Zacharias
Christopher Zacharias
 
PPT
Your Images are Weighing You Down: Optimization for a Better UX
Tim D'Agostino
 
Hacking Web Performance @ ForwardJS 2017
Maximiliano Firtman
 
Fast and Beautiful: Serving High Quality Photos at Scale on Flickr
Hugo Haas
 
Mobile First Responsive Design
Jason Grigsby
 
High Performance Images: Beautiful Shouldn't Mean Slow
Guy Podjarny
 
SMX Milan - Supercharge Responsive Design | Idea Evolver
Idea Evolver
 
Ben Seymour "Practical Responsive Images"
Digital Henley
 
Practical Responsive Images : Digital Henley : May 2015
Ben Seymour
 
Hacking Web Performance
Maximiliano Firtman
 
Hacking Web Performance
Maximiliano Firtman
 
Practical Responsive Images : from Breaking Borders
Ben Seymour
 
Tom Bennet – BrightonSEO April 2016: Site Speed for content Marketers
Authoritas
 
Iasi code camp 12 october 2013 responsive images in the wild-vlad zelinschi
Codecamp Romania
 
Hacking Web Performance 2019
Maximiliano Firtman
 
Delivering Optimal Images for Phones and Tablets on the Modern Web
Joshua Marantz
 
Deliver perfect images at any size
Anne Thomas
 
Deliver Perfect Images At Any Size
FITC
 
Next Steps in Responsive Design
Justin Avery
 
Web Performance Madness - brightonSEO 2018
Bastian Grimm
 
Hyperlight Websites - Chris Zacharias
Christopher Zacharias
 
Your Images are Weighing You Down: Optimization for a Better UX
Tim D'Agostino
 
Ad

More from Andy Davies (17)

PDF
Fast Fashion… How Missguided revolutionised their approach to site performanc...
Andy Davies
 
PDF
Fast Fashion… How Missguided revolutionised their approach to site performanc...
Andy Davies
 
PDF
AB Testing, Ads and other 3rd party tags - London WebPerf - March 2018
Andy Davies
 
PDF
AB Testing, Ads and other 3rd party tags - SmashingConf London - 2018
Andy Davies
 
PDF
Inspecting iOS App Traffic with JavaScript - JSOxford - Jan 2018
Andy Davies
 
PDF
Selling Performance - Bristol WebPerf Meetup 2017-07-20
Andy Davies
 
PDF
Speed: The 'Forgotten' Conversion Factor
Andy Davies
 
PDF
Building an Appier Web - London Web Standards - Nov 2016
Andy Davies
 
PDF
Building an Appier Web - Velocity Amsterdam 2016
Andy Davies
 
PDF
The Case for HTTP/2 - GreeceJS - June 2016
Andy Davies
 
PDF
Building an Appier Web - May 2016
Andy Davies
 
PDF
The Fast, The Slow and The Unconverted - Emerce Conversion 2016
Andy Davies
 
PDF
Making Mobile Sites Faster
Andy Davies
 
PDF
Speed matters, So why is your site so slow?
Andy Davies
 
PDF
The Case for HTTP/2
Andy Davies
 
PDF
HTTP2 is Here!
Andy Davies
 
PDF
Http/2 - What's it all about?
Andy Davies
 
Fast Fashion… How Missguided revolutionised their approach to site performanc...
Andy Davies
 
Fast Fashion… How Missguided revolutionised their approach to site performanc...
Andy Davies
 
AB Testing, Ads and other 3rd party tags - London WebPerf - March 2018
Andy Davies
 
AB Testing, Ads and other 3rd party tags - SmashingConf London - 2018
Andy Davies
 
Inspecting iOS App Traffic with JavaScript - JSOxford - Jan 2018
Andy Davies
 
Selling Performance - Bristol WebPerf Meetup 2017-07-20
Andy Davies
 
Speed: The 'Forgotten' Conversion Factor
Andy Davies
 
Building an Appier Web - London Web Standards - Nov 2016
Andy Davies
 
Building an Appier Web - Velocity Amsterdam 2016
Andy Davies
 
The Case for HTTP/2 - GreeceJS - June 2016
Andy Davies
 
Building an Appier Web - May 2016
Andy Davies
 
The Fast, The Slow and The Unconverted - Emerce Conversion 2016
Andy Davies
 
Making Mobile Sites Faster
Andy Davies
 
Speed matters, So why is your site so slow?
Andy Davies
 
The Case for HTTP/2
Andy Davies
 
HTTP2 is Here!
Andy Davies
 
Http/2 - What's it all about?
Andy Davies
 

Recently uploaded (20)

PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
The Future of Artificial Intelligence (AI)
Mukul
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Doc9.....................................
SofiaCollazos
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 

Making Mobile Sites Faster