tracker: add reminder about header for fetch/xhr
This commit is contained in:
parent
526dfd7e21
commit
3200107d71
1 changed files with 3 additions and 0 deletions
|
|
@ -127,6 +127,9 @@ export default function (app: App, opts: Partial<Options>): void {
|
||||||
|| (entry.responseStatus && entry.responseStatus >= 400)
|
|| (entry.responseStatus && entry.responseStatus >= 400)
|
||||||
: entry.responseStatus && entry.responseStatus >= 400
|
: entry.responseStatus && entry.responseStatus >= 400
|
||||||
|
|
||||||
|
// will probably require custom header added to responses for tracked fetch/xhr requests:
|
||||||
|
// Timing-Allow-Origin: *
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Timing-Allow-Origin
|
||||||
const timings = {
|
const timings = {
|
||||||
queueing: entry.domainLookupStart - entry.startTime,
|
queueing: entry.domainLookupStart - entry.startTime,
|
||||||
dnsLookup: entry.domainLookupEnd - entry.domainLookupStart,
|
dnsLookup: entry.domainLookupEnd - entry.domainLookupStart,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue