From 5155a88ab093578143a38df4a494e74ccf0cf27c Mon Sep 17 00:00:00 2001 From: Houssein Djirdeh Date: Fri, 8 Jul 2022 16:00:01 -0400 Subject: [PATCH] [Docs] Adds mention of INP to "Measuring Performance" page (#38464) * adds mention of inp to measuring performance docs * lint-fix Co-authored-by: JJ Kasper --- docs/advanced-features/measuring-performance.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/advanced-features/measuring-performance.md b/docs/advanced-features/measuring-performance.md index a9c20215e0b7e..498da0900084e 100644 --- a/docs/advanced-features/measuring-performance.md +++ b/docs/advanced-features/measuring-performance.md @@ -54,6 +54,7 @@ experience of a web page. The following web vitals are all included: - [Largest Contentful Paint](https://web.dev/lcp/) (LCP) - [First Input Delay](https://web.dev/fid/) (FID) - [Cumulative Layout Shift](https://web.dev/cls/) (CLS) +- [Interaction to Next Paint](https://web.dev/inp/) (INP) _(experimental)_ You can handle all the results of these metrics using the `web-vital` label: @@ -85,6 +86,9 @@ export function reportWebVitals(metric) { case 'TTFB': // handle TTFB results break + case 'INP': + // handle INP results (note: INP is still an experimental metric) + break default: break }