Skip to content

Commit

Permalink
Remove h.cr check
Browse files Browse the repository at this point in the history
  • Loading branch information
nicjansma committed May 15, 2016
1 parent b77866a commit 7f58ca3
Showing 1 changed file with 19 additions and 25 deletions.
44 changes: 19 additions & 25 deletions plugins/auto_xhr.js
Expand Up @@ -258,35 +258,29 @@
this.watch--;

this.clearTimeout();
if (BOOMR.hasVar("h.cr")) {
ev.resource.resources = ev.resources;

// Add ResourceTiming data to the beacon, starting at when 'requestStart'
// was for this resource.
if (BOOMR.plugins.ResourceTiming &&
BOOMR.plugins.ResourceTiming.is_supported() &&
ev.resource.timing &&
ev.resource.timing.requestStart) {
var r = BOOMR.plugins.ResourceTiming.getResourceTiming(ev.resource.timing.requestStart);
BOOMR.addVar("restiming", JSON.stringify(r));
}
ev.resource.resources = ev.resources;

// If the resource has an onComplete event, trigger it.
if (ev.resource.onComplete) {
ev.resource.onComplete();
}
// Add ResourceTiming data to the beacon, starting at when 'requestStart'
// was for this resource.
if (BOOMR.plugins.ResourceTiming &&
BOOMR.plugins.ResourceTiming.is_supported() &&
ev.resource.timing &&
ev.resource.timing.requestStart) {
var r = BOOMR.plugins.ResourceTiming.getResourceTiming(ev.resource.timing.requestStart);
BOOMR.addVar("restiming", JSON.stringify(r));
}

// If the resource has an onComplete event, trigger it.
if (ev.resource.onComplete) {
ev.resource.onComplete();
}

// Use 'requestStart' as the startTime of the resource, if given
var startTime = ev.resource.timing ? ev.resource.timing.requestStart : undefined;
// Use 'requestStart' as the startTime of the resource, if given
var startTime = ev.resource.timing ? ev.resource.timing.requestStart : undefined;

BOOMR.responseEnd(ev.resource, startTime, ev.resource);
BOOMR.responseEnd(ev.resource, startTime, ev.resource);

this.pending_events[i] = undefined;
}
else {
// No crumb, so try again after 5 seconds
setTimeout(function() { self.sendEvent(i); }, 5000);
}
this.pending_events[i] = undefined;
};

MutationHandler.prototype.setTimeout = function(timeout, index) {
Expand Down

0 comments on commit 7f58ca3

Please sign in to comment.