This repository has been archived by the owner on Apr 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathec60888a.js
59 lines (56 loc) · 1.64 KB
/
ec60888a.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
if (window.performance.mark)
window.performance.mark("cp-n-" + parseInt(window._cf_chl_opt.cNounce, 10))
var l = []
if (window.performance && (window.performance.getEntries || window.performance.webkitGetEntries)) {
if (window.performance.getEntries) l = window.performance.getEntries()
else l = window.performance.webkitGetEntries()
}
window._cf_chl_ctx[window._cf_chl_ctx.chC].p = new Array()
for (var m = 0; m < l.length; m++) {
var n = l[m]
if (n.entryType === "resource") {
var t = {}
t["t"] = "r"
t["i"] = n.initiatorType
t["n"] = n.name
t["nh"] = n.nextHopProtocol
t["ts"] = n.transferSize
t["bs"] = n.encodedBodySize
window._cf_chl_ctx[window._cf_chl_ctx.chC].p[m] = t
} else if (n.entryType === "navigation") {
var v = {}
v["t"] = "n"
v["i"] = n.type
window._cf_chl_ctx[window._cf_chl_ctx.chC].p[m] = v
} else if (n.entryType === "paint") {
var x = {}
x["t"] = "p"
x["i"] = n.name
window._cf_chl_ctx[window._cf_chl_ctx.chC].p[m] = x
} else if (n.entryType === "frame") {
var y = {}
y["t"] = "f"
window._cf_chl_ctx[window._cf_chl_ctx.chC].p[m] = y
} else if (n.entryType === "first-input" || n.entryType === "firstInput") {
var z = {}
z["t"] = "f"
z["s"] = n.entryType
window._cf_chl_ctx[window._cf_chl_ctx.chC].p[m] = z
} else if (n.entryType === "mark") {
var A;
A = {}
A["t"] = "m"
A["n"] = n.name
window._cf_chl_ctx[window._cf_chl_ctx.chC].p[m] = A
} else if (n.entryType === "scrollUpdateLatency") {
var B;
B = {}
B["t"] = "l"
window._cf_chl_ctx[window._cf_chl_ctx.chC].p[m] = B
} else {
var C;
C = {}
C["t"] = n.entryType
window._cf_chl_ctx[window._cf_chl_ctx.chC].p[m] = C
}
}