Created
June 20, 2014 21:56
-
-
Save netsuite/bc0a3b3222cdd06ba967 to your computer and use it in GitHub Desktop.
js: performance timing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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