Skip to content

Commit 5155a88

Browse files
[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 <[email protected]>
1 parent 2fa9682 commit 5155a88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/advanced-features/measuring-performance.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ experience of a web page. The following web vitals are all included:
5454
- [Largest Contentful Paint](https://web.dev/lcp/) (LCP)
5555
- [First Input Delay](https://web.dev/fid/) (FID)
5656
- [Cumulative Layout Shift](https://web.dev/cls/) (CLS)
57+
- [Interaction to Next Paint](https://web.dev/inp/) (INP) _(experimental)_
5758

5859
You can handle all the results of these metrics using the `web-vital` label:
5960

@@ -85,6 +86,9 @@ export function reportWebVitals(metric) {
8586
case 'TTFB':
8687
// handle TTFB results
8788
break
89+
case 'INP':
90+
// handle INP results (note: INP is still an experimental metric)
91+
break
8892
default:
8993
break
9094
}

0 commit comments

Comments
 (0)