Currently, the onINP() function will register a PerformanceObserver and callback in Firefox, despite the fact that it will not report any INP value (given that Firefox doesn't support the interactionId property).
This PR moves the feature detection code to the top level of the onINP() function, so it's essentially a noop in Firefox.
Currently, the
onINP()
function will register a PerformanceObserver and callback in Firefox, despite the fact that it will not report any INP value (given that Firefox doesn't support theinteractionId
property).This PR moves the feature detection code to the top level of the
onINP()
function, so it's essentially a noop in Firefox.