Simon Hearne
Web Performance Consultant
Content served from a domain outside of your control
The median website is
37%
third-party requests
Source: HTTP Archive 2019-10-01
everyone who works on a web product
shares ownership of performance and security
(whether they know it or not)
Source: HTTP Archive. 2016-05-15 to 2019-10-01
<script defer >
Load scripts as late as possible
/**
* This file uses jQuery materials and hashchange plugin
* Portions, Copyright (c) 2010 "Cowboy" Ben Alman
* http://benalman.com/projects/jquery-hashchange-plugin/
* Portions, Copyright 2012 jQueryFoundation and other contributors
* http://jquery.com/
<script async src="//thirdparty.com/embed.js">
<script
src="//thirdparty.com/embed.js"
integrity="sha256-ivk71nXhz9nsyFDoYoGf2...="
crossorigin="anonymous">
Currently used on 5.15% of pages
(HTTP Archive - 2019/10/01)
<script>!function(f,b,e,v,n,t,s){...}();</script>
<noscript>
<img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=...&noscript=1"
/>
</noscript>
The site feels "laggy"
๐ง
If it moves, we track it. Sometimes weโll draw a graph of something that isnโt moving yet, just in case it decides to make a run for it.
26%
more revenue
content-security-policy: default-src *;
script-src 'self' 'unsafe-inline' 'unsafe-eval' *.go-mpulse.net maps.googleapis.com;
object-src *;
style-src 'self' 'unsafe-inline' fonts.googleapis.com;
img-src 'self' data: img.youtube.com *.akstat.io *.gstatic.com *.googleapis.com *.google-analytics.com *.ytimg.com;
media-src 'self';
frame-src 'self' *.youtube-nocookie.com;
font-src 'self' *.gstatic.com data:;
connect-src 'self' *.akstat.io *.go-mpulse.net *.google-analytics.com;
report-uri https://akstat.io/report/<api-key>
Currently used on 6.11% of pages
(HTTP Archive - 2019/10/01)
CSP Directive | HTML / JS Features |
---|---|
default-src | * |
connect-src | XMLHttpRequest(), WebSocket(), EventSource(), sendBeacon(), fetch() |
style-src | <link rel="stylesheet"> |
script-src | <script> |
form-action | <form> |
font-src | @font-face |
child-src | <iframe>, Worker() |
object-src | <object>, <embed> |
media-src | <video>, <audio> |
img-src | <img> |
manifest-src | <link rel="manifest"> |
Source: HTTP Archive. 2017-09-15 to 2019-10-01
Our goal is not to make a fast website,
it is to maximise business success.
Introducing Performance Edge: Making Web Experiments Run Blazingly Fast
Everything should have a value
because everything has a cost
Tim Kadlec