Last active
August 31, 2015 18:49
-
-
Save cvazac/4ec0c70fcd3a9b68b295 to your computer and use it in GitHub Desktop.
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 = w.performance.clearResourceTimings || w.performance.webkitClearResourceTimings; | |
if (!clearResourceTimings) { | |
return; | |
} | |
document.addEventListener("onBoomerangLoaded", function() { | |
BOOMR.subscribe("onbeacon", function() { | |
clearResourceTimings.call(w.performance); | |
}); | |
}); | |
})(window); |
bluesmoon
commented
Aug 31, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment