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++) |
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(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
var setResourceTimingBufferSize == window && window.performance && (performance.setResourceTimingBufferSize || performance.webkitSetResourceTimingBufferSize); | |
if (setResourceTimingBufferSize) { | |
setResourceTimingBufferSize(<size>); | |
} |
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 addVars() { | |
BOOMR.addVar({ | |
"UserId": SOASTA.UserId, | |
"ClientId": SOASTA.ClientId, | |
"GroupId": SOASTA.GroupId, | |
"UniqueId": SOASTA.UniqueId | |
}); | |
} | |
if (document.addEventListener) { |
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; | |
} |
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 || !("performance" in w) || !w.performance || !performance.getEntriesByName) { | |
return; | |
} | |
BOOMR = w.BOOMR || {}; | |
BOOMR.plugins = BOOMR.plugins || {}; | |
BOOMR.plugins.WaitForMark = { | |
markFound: false, | |
init: function() { |
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() { | |
//https://developers.google.com/doubleclick-gpt/reference | |
var slots = ["ad_bnr_atf_01", "ad_bnr_btf_02"], | |
slotCount = window.performance && performance.mark ? slots.length : 0; | |
var boomr_ready = false; | |
BOOMR = window.BOOMR || {}; | |
BOOMR.plugins = BOOMR.plugins || {}; | |
BOOMR.plugins.GPT = { |
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() { | |
var tasks = [] | |
function run() { | |
tasks.push(Array.prototype.slice.call(arguments)) | |
waitThenRun() | |
} | |
function waitThenRun() { | |
requestAnimationFrame(function() { | |
if (tasks.length === 0) { | |
return |
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 != top) return | |
var anchors = document.getElementsByTagName('a') | |
w.addEventListener('load', checkVisibleAnchors) | |
w.addEventListener('scroll', checkVisibleAnchors) | |
var sum = 0, count = 0 | |
function checkVisibleAnchors() { | |
sum -= performance.now() |
OlderNewer