Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onINP: PerformanceEventTiming is not defined in Firefox 88- #402

Closed
steffenweber opened this issue Nov 27, 2023 · 0 comments · Fixed by #403
Closed

onINP: PerformanceEventTiming is not defined in Firefox 88- #402

steffenweber opened this issue Nov 27, 2023 · 0 comments · Fixed by #403

Comments

@steffenweber
Copy link

steffenweber commented Nov 27, 2023

Calling onINP triggers a JavaScript error in Firefox 88 (and older). It's totally fine that this library doesn't (fully) support older browsers, of course, but maybe throwing this JavaScript error could be avoided.

Reduced test-case:

<script type="module">
import {onINP} from 'https://unpkg.com/web-vitals@3?module';
onINP(console.log, true);
</script>

Resulting error:

Uncaught ReferenceError: PerformanceEventTiming is not defined
    Q https://unpkg.com/web-vitals@3?module:1
    C https://unpkg.com/web-vitals@3?module:1
    Q https://unpkg.com/web-vitals@3?module:1
    <anonymous> test.html:3
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 a pull request may close this issue.

1 participant