forked from speedtracker/speedtracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.js
More file actions
139 lines (138 loc) 路 3.44 KB
/
Copy pathConstants.js
File metadata and controls
139 lines (138 loc) 路 3.44 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
export default {
metrics: {
breakdown: {
html: {
bytes: {
color: [115, 210, 222],
name: 'HTML',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
color: [115, 210, 222],
name: 'HTML'
}
},
js: {
bytes: {
color: [251, 177, 60],
name: 'JS',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
color: [251, 177, 60],
name: 'JS'
}
},
css: {
bytes: {
color: [33, 131, 128],
name: 'CSS',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
color: [33, 131, 128],
name: 'CSS'
}
},
image: {
bytes: {
color: [143, 45, 86],
name: 'Images',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
color: [143, 45, 86],
name: 'Images'
}
},
flash: {
bytes: {
color: [33, 41, 92],
name: 'Flash',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
color: [33, 41, 92],
name: 'Flash'
}
},
font: {
bytes: {
color: [216, 17, 89],
name: 'Fonts',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
color: [216, 17, 89],
name: 'Fonts'
}
},
other: {
bytes: {
color: [231, 143, 142],
name: 'Other',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
color: [231, 143, 142],
name: 'Other'
}
}
},
loadTime: {
color: [195, 125, 146],
name: 'Load time',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'The time between the initial request and the browser load event'
},
firstPaint: {
color: [173, 138, 100],
name: 'Start render',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'The time until the browser starts painting content to the screen'
},
fullyLoaded: {
color: [3, 181, 170],
name: 'Fully loaded',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'The time at which the page has fully finished loading content'
},
SpeedIndex: {
color: [87, 117, 144],
name: 'SpeedIndex',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'A custom metric introduced by WebPageTest to rate pages based on how quickly they are visually populated'
},
TTFB: {
color: [80, 48, 71],
name: 'Back-end',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'The time it takes for the server to respond with the first byte of the response'
},
visualComplete: {
color: [243, 202, 64],
name: 'Visually complete',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'The time it takes for the page to be fully visually populated'
}
},
periods: [
'day',
'week',
'month',
'year'
]
}