Last active
September 24, 2017 10:12
-
-
Save abhivaikar/d4e9624964d62a77a4ba0a8e437e8d73 to your computer and use it in GitHub Desktop.
bookmarklet code for displaying basic page performance data
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
javascript:(function() { | |
var perfData = window.performance.timing; | |
var pageLoadTime = perfData.loadEventEnd - perfData.navigationStart; | |
var pageRenderTime = perfData.domComplete - perfData.domLoading; | |
alert("Load time of this page is: " + pageLoadTime + " milliseconds\n" + "Render time of this page is: " + pageRenderTime + " milli-seconds") | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment