-
Notifications
You must be signed in to change notification settings - Fork 430
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
FCP and TTFB are triggered multiple times #443
Comments
Could you give some more details as to when this happens as this should not be the case for those two metrics. You can see from the code that TTFB is emitted once, and FCP is connects the performance observer as soon as it has emitted it's entry. Some cases where this could happen include:
|
We are not using the soft-navigation branch, we are using |
We also not using the bfcache on this navigations. The events are triggered mulitple times on page load, with same durations but different If you agree, I can prepare a pullrequest, to "disallow" |
Are you loading the web-vitals library multiple times? That's another case were I could see this happening. It should be loaded once per page load but if each of your routes reload it, then I could definitely see that causing duplications. From the README:
No I'd prefer not to have this PR until we understand why this might happen. For all of the scenarios I've given so far, this would not help. |
I can check, if there are mulitple instances :) |
So I reworked the import now to an inline import.then behind a |
OK so basically it was loaded twice. In that case it will do that regardless of the |
I noticed, that FCP and TTFB are sometimes triggered multiple times, which should not be the case, as they are single events. Also, maybe
reportAllChanges
should be not supported by the types and internally set to false.The text was updated successfully, but these errors were encountered: