@@ -127,6 +127,7 @@ const StateRoute = (props: StateRouteProps) => {
127127 formatted = { ( _ ) =>
128128 typeof webMetrics . LCP !== 'number' ? '- ms' : `${ webMetrics . LCP . toFixed ( 2 ) } ms`
129129 }
130+ score = { [ '2500 ms' , '4000 ms' ] }
130131 label = 'Largest Contentful Paint'
131132 name = 'Largest Contentful Paint'
132133 description = 'Measures loading performance. The benchmark is less than 2500 ms.'
@@ -137,6 +138,7 @@ const StateRoute = (props: StateRouteProps) => {
137138 formatted = { ( _ ) =>
138139 typeof webMetrics . FID !== 'number' ? '- ms' : `${ webMetrics . FID . toFixed ( 2 ) } ms`
139140 }
141+ score = { [ '100 ms' , '300 ms' ] }
140142 label = 'First Input Delay'
141143 name = 'First Input Delay'
142144 description = 'Measures interactivity. The benchmark is less than 100 ms.'
@@ -147,6 +149,7 @@ const StateRoute = (props: StateRouteProps) => {
147149 formatted = { ( _ ) =>
148150 typeof webMetrics . FCP !== 'number' ? '- ms' : `${ webMetrics . FCP . toFixed ( 2 ) } ms`
149151 }
152+ score = { [ '1800 ms' , '3000 ms' ] }
150153 label = 'First Contentful Paint'
151154 name = 'First Contentful Paint'
152155 description = 'Measures the time it takes the browser to render the first piece of DOM content. No benchmark.'
@@ -157,6 +160,7 @@ const StateRoute = (props: StateRouteProps) => {
157160 formatted = { ( _ ) =>
158161 typeof webMetrics . TTFB !== 'number' ? '- ms' : `${ webMetrics . TTFB . toFixed ( 2 ) } ms`
159162 }
163+ score = { [ '800 ms' , '1800 ms' ] }
160164 label = 'Time To First Byte'
161165 name = 'Time to First Byte'
162166 description = 'Measures the time it takes for a browser to receive the first byte of page content. The benchmark is 600 ms.'
@@ -171,6 +175,7 @@ const StateRoute = (props: StateRouteProps) => {
171175 : `${ webMetrics . CLS < 0.01 ? '~0' : webMetrics . CLS . toFixed ( 2 ) } `
172176 } `
173177 }
178+ score = { [ '0.1' , '0.25' ] }
174179 label = 'Cumulative Layout Shift'
175180 name = 'Cumulative Layout Shift'
176181 description = { `Quantifies the visual stability of a web page by measuring layout shifts during the application's loading and interaction.` }
@@ -181,6 +186,7 @@ const StateRoute = (props: StateRouteProps) => {
181186 formatted = { ( _ ) =>
182187 typeof webMetrics . INP !== 'number' ? '- ms' : `${ webMetrics . INP . toFixed ( 2 ) } ms`
183188 }
189+ score = { [ '200 ms' , '500 ms' ] }
184190 label = 'Interaction to Next Paint'
185191 name = 'Interaction to Next Paint'
186192 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