-
Notifications
You must be signed in to change notification settings - Fork 15
/
constants.js
112 lines (112 loc) · 2.76 KB
/
constants.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
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
module.exports = {
metrics: {
breakdown: {
html: {
bytes: {
name: 'HTML',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
name: 'HTML'
}
},
js: {
bytes: {
name: 'JS',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
name: 'JS'
}
},
css: {
bytes: {
name: 'CSS',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
name: 'CSS'
}
},
image: {
bytes: {
name: 'Images',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
name: 'Images'
}
},
flash: {
bytes: {
name: 'Flash',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
name: 'Flash'
}
},
font: {
bytes: {
name: 'Fonts',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
name: 'Fonts'
}
},
other: {
bytes: {
name: 'Other',
transform: (value) => (value / 1000).toFixed(1),
unit: 'KB'
},
requests: {
name: 'Other'
}
}
},
loadTime: {
name: 'Load time',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'The time between the initial request and the browser load event'
},
firstPaint: {
name: 'Start render',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'The time until the browser starts painting content to the screen'
},
fullyLoaded: {
name: 'Fully loaded',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'The time at which the page has fully finished loading content'
},
SpeedIndex: {
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: {
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: {
name: 'Visually complete',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'The time it takes for the page to be fully visually populated'
}
}
}