Skip to content

Commit

Permalink
Update web.dev link for onINP() (#317)
Browse files Browse the repository at this point in the history
Assuming the link to the "feedback wanted" page was outdated now that INP's available in the library.
  • Loading branch information
robatron authored Feb 10, 2023
1 parent 0a87ab0 commit db2cfd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ _**Important:** since FID is only reported after the user interacts with the pag
type onINP = (callback: INPReportCallback, opts?: ReportOpts) => void;
```

Calculates the [INP](https://web.dev/responsiveness/) value for the current page and calls the `callback` function once the value is ready, along with the `event` performance entries reported for that interaction. The reported value is a [`DOMHighResTimeStamp`](https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp).
Calculates the [INP](https://web.dev/inp/) value for the current page and calls the `callback` function once the value is ready, along with the `event` performance entries reported for that interaction. The reported value is a [`DOMHighResTimeStamp`](https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp).

A custom `durationThreshold` [configuration option](#reportopts) can optionally be passed to control what `event-timing` entries are considered for INP reporting. The default threshold is `40`, which means INP scores of less than 40 are reported as 0. Note that this will not affect your 75th percentile INP value unless that value is also less than 40 (well below the recommended [good](https://web.dev/inp/#what-is-a-good-inp-score) threshold).

Expand Down

0 comments on commit db2cfd4

Please sign in to comment.