Skip to content

Conversation

@Mimori256
Copy link
Contributor

I've been using this library and do appreciate this project! While reading through the README, I noticed that Firefox isn't mentioned as a supported browser for onINP(), but according to this Mozilla blog post, Firefox 144+ (released October 2025) now supports PerformanceEventTiming.interactionId, which enables INP measurement.

web-vitals/src/onINP.ts

Lines 66 to 80 in 1b872cf

export const onINP = (
onReport: (metric: INPMetric) => void,
opts: INPReportOpts = {},
) => {
// Return if the browser doesn't support all APIs needed to measure INP.
if (
!(
globalThis.PerformanceEventTiming &&
'interactionId' in PerformanceEventTiming.prototype
)
) {
return;
}
const visibilityWatcher = getVisibilityWatcher();

interactionId is now supported so the INP measuremet is performed on Firefox 144+

To help avoid confusion for users, this PR updates the documentation to reflect Firefox 144+ support and removes an outdated comment in the test utilities.

I'd love to hear the thoughs on this change!

- The comment previously stated Firefox doesn't support `interactionId`, which is no longer accurate
@google-cla
Copy link

google-cla bot commented Nov 9, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Mimori256 Mimori256 marked this pull request as ready for review November 9, 2025 15:44
Copy link
Member

@tunetheweb tunetheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Suggested some tweaks since Safari support is coming soon too.

@Mimori256
Copy link
Contributor Author

Thanks for the feedback! I’ve addressed all the requested changes.

@Mimori256 Mimori256 requested a review from tunetheweb November 10, 2025 11:44
@Mimori256 Mimori256 mentioned this pull request Nov 10, 2025
Copy link
Member

@tunetheweb tunetheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for this.

@tunetheweb tunetheweb changed the title Update INP browser support docs to include Firefox 144+ Update browser support docs for INP and LCP Nov 11, 2025
@tunetheweb tunetheweb merged commit a6c4427 into GoogleChrome:main Nov 20, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants