Created
May 21, 2015 16:38
-
-
Save cvazac/f2cd83ea0058246d8e5c to your computer and use it in GitHub Desktop.
performance.clearResourceTimings for SPAs
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment