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
(function(w){ | |
if (!w || !w.performance) { | |
return; | |
} | |
var clearResourceTimings = performance.clearResourceTimings || performance.webkitClearResourceTimings; | |
if (clearResourceTimings) { | |
BOOMR.subscribe("onbeacon", clearResourceTimings); | |
} | |
})(window); |
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
;(function(p){ | |
if (!p) return; | |
function stash(strMethod) | |
{ | |
p["__orig_" + strMethod] = p[strMethod]; | |
} | |
stash("getEntries"); | |
stash("webkitClearResourceTimings"); |
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
;(function(domains) | |
{ | |
var entries = window.performance.getEntries(); | |
var result = { | |
total: 0, | |
count: 0, | |
domains: {} | |
}; | |
for (var entry = 0; entry < entries.length; entry++) |
NewerOlder