@@ -128,9 +128,10 @@ const StateRoute = (props: StateRouteProps) => {
128
128
typeof webMetrics . LCP !== 'number' ? '- ms' : `${ webMetrics . LCP . toFixed ( 2 ) } ms`
129
129
}
130
130
score = { [ '2500 ms' , '4000 ms' ] }
131
+ overLimit = { webMetrics . LCP > 7000 }
131
132
label = 'Largest Contentful Paint'
132
133
name = 'Largest Contentful Paint'
133
- description = 'Measures loading performance. The benchmark is less than 2500 ms. '
134
+ description = 'Measures loading performance.'
134
135
/>
135
136
< WebMetrics
136
137
color = { FIDColor }
@@ -139,9 +140,10 @@ const StateRoute = (props: StateRouteProps) => {
139
140
typeof webMetrics . FID !== 'number' ? '- ms' : `${ webMetrics . FID . toFixed ( 2 ) } ms`
140
141
}
141
142
score = { [ '100 ms' , '300 ms' ] }
143
+ overLimit = { webMetrics . FID > 500 }
142
144
label = 'First Input Delay'
143
145
name = 'First Input Delay'
144
- description = 'Measures interactivity. The benchmark is less than 100 ms. '
146
+ description = 'Measures interactivity.'
145
147
/>
146
148
< WebMetrics
147
149
color = { FCPColor }
@@ -150,9 +152,10 @@ const StateRoute = (props: StateRouteProps) => {
150
152
typeof webMetrics . FCP !== 'number' ? '- ms' : `${ webMetrics . FCP . toFixed ( 2 ) } ms`
151
153
}
152
154
score = { [ '1800 ms' , '3000 ms' ] }
155
+ overLimit = { webMetrics . FCP > 5000 }
153
156
label = 'First Contentful Paint'
154
157
name = 'First Contentful Paint'
155
- description = 'Measures the time it takes the browser to render the first piece of DOM content. No benchmark. '
158
+ description = 'Measures the time it takes the browser to render the first piece of DOM content.'
156
159
/>
157
160
< WebMetrics
158
161
color = { TTFBColor }
@@ -161,9 +164,10 @@ const StateRoute = (props: StateRouteProps) => {
161
164
typeof webMetrics . TTFB !== 'number' ? '- ms' : `${ webMetrics . TTFB . toFixed ( 2 ) } ms`
162
165
}
163
166
score = { [ '800 ms' , '1800 ms' ] }
167
+ overLimit = { webMetrics . TTFB > 3000 }
164
168
label = 'Time To First Byte'
165
169
name = 'Time to First Byte'
166
- description = 'Measures the time it takes for a browser to receive the first byte of page content. The benchmark is 600 ms. '
170
+ description = 'Measures the time it takes for a browser to receive the first byte of page content.'
167
171
/>
168
172
< WebMetrics
169
173
color = { CLSColor }
@@ -176,6 +180,7 @@ const StateRoute = (props: StateRouteProps) => {
176
180
} `
177
181
}
178
182
score = { [ '0.1' , '0.25' ] }
183
+ overLimit = { webMetrics . CLS > 0.5 }
179
184
label = 'Cumulative Layout Shift'
180
185
name = 'Cumulative Layout Shift'
181
186
description = { `Quantifies the visual stability of a web page by measuring layout shifts during the application's loading and interaction.` }
@@ -187,6 +192,7 @@ const StateRoute = (props: StateRouteProps) => {
187
192
typeof webMetrics . INP !== 'number' ? '- ms' : `${ webMetrics . INP . toFixed ( 2 ) } ms`
188
193
}
189
194
score = { [ '200 ms' , '500 ms' ] }
195
+ overLimit = { webMetrics . LCP > 700 }
190
196
label = 'Interaction to Next Paint'
191
197
name = 'Interaction to Next Paint'
192
198
description = { `Assesses a page's overall responsiveness to user interactions by observing the latency of all click, tap, and keyboard interactions that occur throughout the lifespan of a user's visit to a page` }
0 commit comments