Skip to content

Commit

Permalink
[Docs] Adds mention of INP to "Measuring Performance" page (#38464)
Browse files Browse the repository at this point in the history
* adds mention of inp to measuring performance docs

* lint-fix

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
housseindjirdeh and ijjk authored Jul 8, 2022
1 parent 2fa9682 commit 5155a88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/advanced-features/measuring-performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 5155a88

Please sign in to comment.