Skip to content

Instantly share code, notes, and snippets.

@jeremypele
Created August 6, 2015 13:07
Show Gist options
  • Save jeremypele/6c4fb6f4009a9e6c20df to your computer and use it in GitHub Desktop.
Save jeremypele/6c4fb6f4009a9e6c20df to your computer and use it in GitHub Desktop.
[Chrome Snippets] First Paint
// taken from https://www.youtube.com/watch?v=S9sktFzL3tQ
(function timeFirstPaint() {
/* global chrome */
var fp = chrome.loadTimes().firstPaintTime - chrome.loadTimes().startLoadTime;
console.log('first paint: ' + fp);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment