Created
November 19, 2014 04:49
-
-
Save micmro/bb3d3cc9417a7d632d02 to your computer and use it in GitHub Desktop.
Page Resources ordered by duration
This file contains 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
window.performance.getEntriesByType("resource").sort(function(a, b) { | |
return b.duration - a.duration; | |
}).forEach(function(a){ | |
console.log(Math.floor(a.duration), a.name); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment