SlideShare a Scribd company logo
https://www.flickr.com/photos/aukirk/9233111519
Speed Matters!
@AndyDavies
JS Oxford, Jan 2015
https://www.flickr.com/photos/dullhunk/3930915541
But I’m frustrated…
http://www.flickr.com/photos/sybrenstuvel/2468506922
The Web is Too Slow
http://www.flickr.com/photos/the_justified_sinner/3507390621
Speed Matters!
Too many sites are too slow
http://www.flickr.com/photos/the_justified_sinner/3507390621
and it’s getting worse!
Only 12% of the top 100 (US) retail sites
rendered feature content in less than 3
seconds. !
!
Year-on-year the median page has
slowed down by 23%
Tammy Everts - Radware State of the Union Fall 2014
“We’re not being deliberate about performance”!
https://www.flickr.com/photos/lukew/7382528728
Tim Kadlec
But only if we build it that way…
http://3.bp.blogspot.com/-0RqujOyE1ro/Up9HF7bPxbI/AAAAAAAAAbM/Ijudm6uq-dg/s1600/This+is+for+Everyone.jpg
Reader panel (3,000 people) rated speed
(fast page load time) as their second most
important driver!
!
Speed had the highest percentage of people
saying it was VERY important to them
Speed matters!
Walmart 2012
increased conversions by 10%
http://www.slideshare.net/cliffcrocker/velocity-ny-how-to-measure-revenue-in-milliseconds
Shaved 1 second off median home page time!
6 seconds off 98th percentile
More tolerant as we get further in purchase funnels
Less Tolerant
More Tolerant
sometimes we get suspicious if something’s too fast
Design is all about finding solutions within constraints,!
if there were no constraints, it’s not design — it’s art.!
Matias Duarte
“
”
http://www.flickr.com/photos/communityfriend/2342578485
Embrace those constraints… set a performance budget
Setting a budget
An event that matters to the visitor!
within a set time!
under defined network conditions
“Usable within 10 seconds on GPRS connection”!
BBC News
“SpeedIndex under 1000”!
Paul Irish
Could use page size or number of objects but…
…how well would they work here?
Make them visible
Lara Hogan, Etsy
Lara Hogan, Etsy
http://lafikl.github.io/perfBar
Test with a slower network connection
Network Link Conditioner
(or http://slowyapp.com/)
http://jagt.github.io/clumsy/
Speed Matters!
It’s great for comparisons… set a budget based on competitors
Build it into build processes
Commercial services based on WebPagetest
Performance budgets coming to them too
Speed Matters!
We know how to make fast sites… plenty of recipes
How well do we understand our medium?
https://www.flickr.com/photos/37873897@N06/6924775578
Do we understand our fundamental building blocks?
https://www.flickr.com/photos/ogimogi/2253657555
Which will be faster?
1Mbps 10Mbps/ 28ms RTT / 280ms RTT
We often think of the network as a pipe
https://www.flickr.com/photos/63567936@N00/4181042889
that’s sometimes really bad
https://www.flickr.com/photos/chesh2000/4487000196
but the reality is closer to
http://1m0esx2939yhjwld8419obqhyb.wpengine.netdna-cdn.com/wp-content/uploads/2014/06/DSC_0492.jpg
“More Bandwidth Doesn’t Matter (much)”	

Mike Belshe
PageLoadTime
Bandwidth (Mbps)
1 2 3 4 5 6 7 8 9 10
1.36s1.37s1.38s1.39s1.41s1.44s1.50s
1.63s
1.95s
3.11s
But latency has a linear impactPageLoadTime(s)
1
2
3
4
Round Trip Time (ms)
0 20 40 60 80 100 120 140 160 180 200 220 240
Speed Matters!
http://www.vectortemplates.com
BT Backbone roundtrip times from London: http://ippm.bt.net/hour/europe/lo.shtml
Latency increases with distance
81ms
201ms
156ms
266ms
232ms
28ms
There’s the last mile latency too
(and routers, other networking kit, mobile latencies too)
https://www.flickr.com/photos/kiwanja/3170292282
TCP Handshake
Client Server
Round	

Trip	

Time
SYN
GET / HTTP 1.1
SYN-ACK
ACK
TCP Slow Start
Client Server
Round	

Trip	

Time
GET / HTTP 1.1
TCP and the Lower Bound of Web Performance	

John Rauser
Larger downloads == more round trips
71kB
143kB
214kB
285kB
1 2 3 4 5 6 7 8 9 10 11
(TCP Segments)
Round Trips
Size
We can cheat the latency penalty
(sometimes)
https://speakerdeck.com/mikeyk/secrets-to-lightning-fast-mobile-design
User gets
feedback
Network
request
Speed Matters!
Covert HTML …
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link href="styles.css" rel="stylesheet">
<script src="script.js"></script>
<title>HTML Example</title>
</head>
<body>
<h1>Title</h1>
<p>Some introductory text and picture! <img src="image.jpg"/></p>
</body>
</html>
… into Document Object Model (DOM)
html
head body
meta link script title h1 p
img
Convert CSS …
body { font-size: 16px }
h1 { text-decoration: underline}
p { font-weight: bold }
p > span { color: #000 }
img { border: 1px solid #ccc }
… into CSS Object Model (CSSOM)
body
h1 p
span
font-size: 16px
font-size: 16px
text-decoration: underline
font-size: 16px
font-weight: bold
font-size: 16px
font-weight: bold
color: #000
img
font-size: 16px
border: 1px solid #ccc
Combine DOM and CSSOM to build Render Tree
body
h1 p
img
font-size: 16px
text-decoration: underline
font-size: 16px
font-weight: bold
border: 1px solid #ccc
font-size: 16px
font-weight: bold
Render the Page
HTML
CSS
DOM
CSSOM
Render!
Tree
Layout Paint
But what about JavaScript?
HTML
CSS
DOM
CSSOM
Render!
Tree
Layout PaintJavaScript
But what about JavaScript?
JavaScript blocks DOM construction!
CSSOM construction blocks JavaScript execution
HTML
CSS
DOM
CSSOM
Render!
Tree
Layout PaintJavaScript
Fonts and background
images discovered
when render tree buildsHTML
CSS
DOM
CSSOM
Render!
Tree
Layout PaintJavaScript
And we all hate this… right?
Use font foundries that prioritise visitor experience
http://www.flickr.com/photos/splorp/4951916342
Some interesting ideas that may help
font-timeout: <time>;!
font-desirability: [ optional | mandatory ];
https://github.com/igrigorik/css-font-timeout
https://www.flickr.com/photos/christian_bachellier/582457911
Server push in HTTP/2 might help too
Watch your framework
Speed Matters!
http://www.filamentgroup.com/lab/mv-initial-load-times.html
How could features like ServiceWorker help?
https://github.com/slightlyoff/ServiceWorker
Be deliberate, design for performance
https://www.flickr.com/photos/9760699@N08/3748770917
Measure frequently - during build and in live
http://www.flickr.com/photos/chandramarsono/4324373384
Remember the constraints of our medium
https://www.flickr.com/photos/33649815@N03/3367739514
https://www.flickr.com/photos/basheertome/4762529213
http://www.flickr.com/photos/nzbuu/4093456029
ThankYou!
@andydavies
andy.davies@nccgroup.com
http://slideshare.net/andydavies

More Related Content

PDF
The Case for HTTP/2 - EpicFEL Sept 2015
PDF
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
PDF
The Case for HTTP/2 - Internetdagarna 2015 - Stockholm
PDF
Mobile Web Performance - Getting and Staying Fast
PDF
The web is too slow
PDF
The Case for HTTP/2
PDF
What does the browser pre-loader do?
PDF
Speed is Essential for a Great Web Experience
The Case for HTTP/2 - EpicFEL Sept 2015
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
The Case for HTTP/2 - Internetdagarna 2015 - Stockholm
Mobile Web Performance - Getting and Staying Fast
The web is too slow
The Case for HTTP/2
What does the browser pre-loader do?
Speed is Essential for a Great Web Experience

What's hot (20)

PDF
Making Mobile Sites Faster
KEY
Sniffing the Mobile Context
PDF
Web Page Test - Beyond the Basics
PDF
The Case for HTTP/2 - GreeceJS - June 2016
PDF
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
PDF
EdgeConf - Page Load Performance Opening Talk
KEY
Speed is Essential for a Great Web Experience
PDF
Making Mobile Sites Faster
KEY
Web Performance - A Whistlestop Tour
PPTX
Browser Wars Episode 1: The Phantom Menace
PDF
How I learned to stop worrying and love the .htaccess file
PDF
Web Performance Workshop - Velocity London 2013
PPT
The Need For Speed
PDF
SearchLove San Diego 2018 | Tom Anthony | An Introduction to HTTP/2 & Service...
PDF
Mobile Web Speed Bumps
PPTX
What is HTML 5?
PPTX
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
PDF
Speed is Essential for a Great Web Experience (Digicure - Copenhagen)
PDF
Progressive Enhancement 2.0 (Conference Agnostic)
PPTX
Word campktm speed-security
Making Mobile Sites Faster
Sniffing the Mobile Context
Web Page Test - Beyond the Basics
The Case for HTTP/2 - GreeceJS - June 2016
Are Today’s Good Practices… Tomorrow’s Performance Anti-Patterns?
EdgeConf - Page Load Performance Opening Talk
Speed is Essential for a Great Web Experience
Making Mobile Sites Faster
Web Performance - A Whistlestop Tour
Browser Wars Episode 1: The Phantom Menace
How I learned to stop worrying and love the .htaccess file
Web Performance Workshop - Velocity London 2013
The Need For Speed
SearchLove San Diego 2018 | Tom Anthony | An Introduction to HTTP/2 & Service...
Mobile Web Speed Bumps
What is HTML 5?
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
Speed is Essential for a Great Web Experience (Digicure - Copenhagen)
Progressive Enhancement 2.0 (Conference Agnostic)
Word campktm speed-security
Ad

Viewers also liked (9)

PDF
Building an Appier Web - May 2016
PDF
Http/2 - What's it all about?
PDF
The Fast, The Slow and The Unconverted - Emerce Conversion 2016
PDF
Reimagining Your Website: What are prospective students looking for and how a...
PDF
Building an Appier Web - London Web Standards - Nov 2016
PDF
Building an Appier Web - Velocity Amsterdam 2016
PDF
Making Mobile Sites Faster
PDF
Speed matters, So why is your site so slow?
PDF
HTTP2 is Here!
Building an Appier Web - May 2016
Http/2 - What's it all about?
The Fast, The Slow and The Unconverted - Emerce Conversion 2016
Reimagining Your Website: What are prospective students looking for and how a...
Building an Appier Web - London Web Standards - Nov 2016
Building an Appier Web - Velocity Amsterdam 2016
Making Mobile Sites Faster
Speed matters, So why is your site so slow?
HTTP2 is Here!
Ad

Similar to Speed Matters! (20)

PDF
Speed is Essential for a Great Web Experience (Canvas Conf Version)
PDF
The case for HTTP/2
KEY
Faster Frontends
PDF
Stefan Judis "Did we(b development) lose the right direction?"
PPTX
Web Directions South - Even Faster Web Sites
PDF
Five Pound App talk: hereit.is, Web app architecture, REST, CSS3
PPTX
Website performance optimisation
PDF
The Multipack Presents: "Wrestling With Asp.Net And Web Standards" by Anthony...
PDF
Exploring Critical Rendering Path
PPT
Please dont touch-3.6-jsday
PDF
Mobile web performance dwx13
PPTX
A faster journey with HTTP
PPT
Windy cityrails performance_tuning
PPT
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
PDF
Minimalism in Web Development
PDF
Using Ember to Make a Bazillion Dollars
PDF
Shifting Gears
PDF
Mobile First Responsive Design
PDF
Scraping with Python for Fun and Profit - PyCon India 2010
PDF
SMX_DevTools_Monaco_2.pdf
Speed is Essential for a Great Web Experience (Canvas Conf Version)
The case for HTTP/2
Faster Frontends
Stefan Judis "Did we(b development) lose the right direction?"
Web Directions South - Even Faster Web Sites
Five Pound App talk: hereit.is, Web app architecture, REST, CSS3
Website performance optimisation
The Multipack Presents: "Wrestling With Asp.Net And Web Standards" by Anthony...
Exploring Critical Rendering Path
Please dont touch-3.6-jsday
Mobile web performance dwx13
A faster journey with HTTP
Windy cityrails performance_tuning
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
Minimalism in Web Development
Using Ember to Make a Bazillion Dollars
Shifting Gears
Mobile First Responsive Design
Scraping with Python for Fun and Profit - PyCon India 2010
SMX_DevTools_Monaco_2.pdf

More from Andy Davies (9)

PDF
Fast Fashion… How Missguided revolutionised their approach to site performanc...
PDF
Fast Fashion… How Missguided revolutionised their approach to site performanc...
PDF
AB Testing, Ads and other 3rd party tags - London WebPerf - March 2018
PDF
AB Testing, Ads and other 3rd party tags - SmashingConf London - 2018
PDF
Inspecting iOS App Traffic with JavaScript - JSOxford - Jan 2018
PDF
Selling Performance - Bristol WebPerf Meetup 2017-07-20
PDF
Speed: The 'Forgotten' Conversion Factor
PDF
Are Today’s Good Practices... Tomorrow’s Performance Anti-Patterns?
PDF
Are Today's Good Practices… Tomorrow's Performance Anti-Patterns
Fast Fashion… How Missguided revolutionised their approach to site performanc...
Fast Fashion… How Missguided revolutionised their approach to site performanc...
AB Testing, Ads and other 3rd party tags - London WebPerf - March 2018
AB Testing, Ads and other 3rd party tags - SmashingConf London - 2018
Inspecting iOS App Traffic with JavaScript - JSOxford - Jan 2018
Selling Performance - Bristol WebPerf Meetup 2017-07-20
Speed: The 'Forgotten' Conversion Factor
Are Today’s Good Practices... Tomorrow’s Performance Anti-Patterns?
Are Today's Good Practices… Tomorrow's Performance Anti-Patterns

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Approach and Philosophy of On baking technology
PDF
cuic standard and advanced reporting.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
A Presentation on Artificial Intelligence
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Encapsulation theory and applications.pdf
Network Security Unit 5.pdf for BCA BBA.
NewMind AI Weekly Chronicles - August'25 Week I
Unlocking AI with Model Context Protocol (MCP)
“AI and Expert System Decision Support & Business Intelligence Systems”
Building Integrated photovoltaic BIPV_UPV.pdf
Approach and Philosophy of On baking technology
cuic standard and advanced reporting.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Spectral efficient network and resource selection model in 5G networks
A Presentation on Artificial Intelligence
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
The Rise and Fall of 3GPP – Time for a Sabbatical?
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Advanced methodologies resolving dimensionality complications for autism neur...
Big Data Technologies - Introduction.pptx
Encapsulation_ Review paper, used for researhc scholars
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Encapsulation theory and applications.pdf

Speed Matters!