Skip to content

Commit a6c4427

Browse files
Update browser support docs for INP and LCP (#647)
* Update INP browser support docs to include Firefox 144+ * Updated outdated comment in `browserSUpportsEntry.js` - The comment previously stated Firefox doesn't support `interactionId`, which is no longer accurate * Add Safari Tech Preview support for INP and LCP * Clarify browser support description in README - Clarified browser support information for web-vitals metrics --------- Co-authored-by: Barry Pollard <[email protected]>
1 parent f42ba88 commit a6c4427

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,14 +1129,12 @@ interface TTFBAttribution {
11291129

11301130
The `web-vitals` code is tested in Chrome, Firefox, and Safari. In addition, all JavaScript features used in the code are part of ([Baseline Widely Available](https://web.dev/baseline)), and thus should run without error in all versions of these browsers released within the last 30 months.
11311131

1132-
However, some of the APIs required to capture these metrics are currently only available in Chromium-based browsers (e.g. Chrome, Edge, Opera, Samsung Internet), which means in some browsers those metrics will not be reported.
1133-
1134-
Browser support for each function is as follows:
1132+
However, some of the APIs required to capture these metrics are currently only available in some browsers. Browser support for each function is as follows:
11351133

11361134
- `onCLS()`: Chromium
11371135
- `onFCP()`: Chromium, Firefox, Safari
1138-
- `onINP()`: Chromium
1139-
- `onLCP()`: Chromium, Firefox
1136+
- `onINP()`: Chromium, Firefox, Safari Tech Preview
1137+
- `onLCP()`: Chromium, Firefox, Safari Tech Preview
11401138
- `onTTFB()`: Chromium, Firefox, Safari
11411139

11421140
## Limitations

test/utils/browserSupportsEntry.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export function browserSupportsEntry(type) {
2828
return false;
2929
}
3030

31-
// Firefox supports the event timing API but not `interactionId`.
3231
if (
3332
type === 'event' &&
3433
self.PerformanceEventTiming &&

0 commit comments

Comments
 (0)