Skip to content

Instantly share code, notes, and snippets.

@vitalyfriedman
Created March 1, 2017 22:52
Show Gist options
  • Save vitalyfriedman/0caca0623a294d90047ff5701b7fb1a2 to your computer and use it in GitHub Desktop.
Save vitalyfriedman/0caca0623a294d90047ff5701b7fb1a2 to your computer and use it in GitHub Desktop.
/* Courtesy of Steve Souders, #ImageCon17, San Francisco, US */
/* Details: https://developer.mozilla.org/en-US/docs/Web/API/Performance */
<link rel="stylesheet" href="/huge-slow.css">
<img src="hero.jpg"
onload="performance.clearMeasures('hero');
performance.measure('hero')">
<script>
performance.clearMeasures('hero');
performance.measure('hero');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment