forked from speedtracker/speedtracker-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
136 lines (136 loc) · 3.91 KB
/
constants.js
File metadata and controls
136 lines (136 loc) · 3.91 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
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'
},
TTFI: {
name: 'First Interactive',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'This is a newer metric and reports when the page is first expected to be usable and will respond to input quickly (with the possibility of slow responses as more content loads).'
},
TimeToInteractive: {
name: 'Time to Interactive',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'TTI measures the time until the page being loaded is considered usable and will respond to user input.'
},
firstContentfulPaint: {
name: 'First Contentful Paint',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'The point in time when the first image or text is rendered to the screen (something other than background colors).'
},
firstMeaningfulPaint: {
name: 'First Contentful Paint',
transform: (value) => (value / 1000).toFixed(2),
unit: 's',
description: 'First Meaningful Paint is essentially the paint after which the biggest above-the-fold layout change has happened, and web fonts have loaded.'
},
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'
}
}
}