Skip to content

Instantly share code, notes, and snippets.

@cvazac
Last active August 31, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cvazac/4ec0c70fcd3a9b68b295 to your computer and use it in GitHub Desktop.
Save cvazac/4ec0c70fcd3a9b68b295 to your computer and use it in GitHub Desktop.
(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
Copy link

function crt() { clearResourceTimings.call(w.performance); };

subscribe("onbeacon", crt);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment