Skip to content

Instantly share code, notes, and snippets.

@cvazac
Created May 21, 2015 16:38
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/f2cd83ea0058246d8e5c to your computer and use it in GitHub Desktop.
Save cvazac/f2cd83ea0058246d8e5c to your computer and use it in GitHub Desktop.
performance.clearResourceTimings for SPAs
(function(w){
if (!w || !w.performance) {
return;
}
var clearResourceTimings = performance.clearResourceTimings || performance.webkitClearResourceTimings;
if (clearResourceTimings) {
BOOMR.subscribe("onbeacon", clearResourceTimings);
}
})(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment