Skip to content

Instantly share code, notes, and snippets.

@dannycroft
Created June 16, 2017 06:06
Show Gist options
  • Save dannycroft/be85d204468ab695d1d06421275c02ad to your computer and use it in GitHub Desktop.
Save dannycroft/be85d204468ab695d1d06421275c02ad to your computer and use it in GitHub Desktop.
TTI - console measurement
var t = window.performance.timing;
var interactive = t.domInteractive - t.domLoading;
var dcl = t.domContentLoadedEventStart - t.domLoading;
var complete = t.domComplete - t.domLoading;
console.log('interactive: ' + interactive + 'ms, ' + 'dcl: ' + dcl + 'ms, complete: ' + complete + 'ms');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment