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)

PPTX
Fastandbeautiful belfast
Doug Sillars
 
PPTX
Imagesandvideo stockholm webmeetup
Doug Sillars
 
PPTX
Imagesandvideo stockholm fastandbeautiful
Doug Sillars
 
PDF
Mobile First Responsive Design
Jason Grigsby
 
PDF
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Nicholas Zakas
 
PDF
Progressive Enhancement 2.0 (Conference Agnostic)
Nicholas Zakas
 
PDF
Http/2 - What's it all about?
Andy Davies
 
PPTX
Edi react fastandbeautiful
Doug Sillars
 
PPTX
Imagesandvideo tallinn
Doug Sillars
 
PDF
GTALUG Presentation on CouchDB
Myles Braithwaite
 
PDF
Delivering Responsive Images
Cloudinary
 
PDF
Nobody Wants a Slow Website
Sang-Min Yoon
 
PDF
The Big Picture: Responsive Images in Action #scd14
Matthias Lau
 
PDF
Optimizing design: a UX practitioners guide
James Christie
 
PDF
Now you see me... Adaptive Web Design and Development
Jonas Päckos
 
PPTX
PyconUK: Fast and Beautiful Images
Doug Sillars
 
PDF
Design & Performance - Steve Souders at Fastly Altitude 2015
Fastly
 
PDF
That's Web? Extreme Optimization for the Mobile Web (Oct 2012)
Glan Thomas
 
PDF
Christopher Schmitt, "Adaptive Images for Responsive Web Design"
WebVisions
 
PDF
[wvbcn] Adaptive Images in Responsive Web Design
Christopher Schmitt
 
Fastandbeautiful belfast
Doug Sillars
 
Imagesandvideo stockholm webmeetup
Doug Sillars
 
Imagesandvideo stockholm fastandbeautiful
Doug Sillars
 
Mobile First Responsive Design
Jason Grigsby
 
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Nicholas Zakas
 
Progressive Enhancement 2.0 (Conference Agnostic)
Nicholas Zakas
 
Http/2 - What's it all about?
Andy Davies
 
Edi react fastandbeautiful
Doug Sillars
 
Imagesandvideo tallinn
Doug Sillars
 
GTALUG Presentation on CouchDB
Myles Braithwaite
 
Delivering Responsive Images
Cloudinary
 
Nobody Wants a Slow Website
Sang-Min Yoon
 
The Big Picture: Responsive Images in Action #scd14
Matthias Lau
 
Optimizing design: a UX practitioners guide
James Christie
 
Now you see me... Adaptive Web Design and Development
Jonas Päckos
 
PyconUK: Fast and Beautiful Images
Doug Sillars
 
Design & Performance - Steve Souders at Fastly Altitude 2015
Fastly
 
That's Web? Extreme Optimization for the Mobile Web (Oct 2012)
Glan Thomas
 
Christopher Schmitt, "Adaptive Images for Responsive Web Design"
WebVisions
 
[wvbcn] Adaptive Images in Responsive Web Design
Christopher Schmitt
 
Ad

More from Andy Davies (16)

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
 
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
 

Recently uploaded (20)

PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PPT
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 

Making Mobile Sites Faster