Skip to content

Instantly share code, notes, and snippets.

@netsuite
Created June 20, 2014 21:56
Show Gist options
  • Save netsuite/bc0a3b3222cdd06ba967 to your computer and use it in GitHub Desktop.
Save netsuite/bc0a3b3222cdd06ba967 to your computer and use it in GitHub Desktop.
js: performance timing
var t = window.performance.timing,
interactive = t.domInteractive - t.domLoading,
dcl = t.domContentLoadedEventStart - t.domLoading,
complete = t.domComplete - t.domLoading;
console.log('interactive: ', interactive + ' ms')
console.log('docContentLoaded: ', dcl + ' ms')
console.log('complete: ', complete + 'ms')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment