-
Notifications
You must be signed in to change notification settings - Fork 418
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
Don't include first-input entry duplicating event entry in INP entries? #547
Comments
There used to be code that tried to dedupe these at collection time, but it was changed in #442 to simplify things and address edge cases (e.g. turns out you can't just assume that if the I think it would be fine to filter these out at reporting time, but TBH I think there are some benefits to knowing if the INP event is also the first input. |
I can think of cases where the event wouldn't be reported until later, and I think there might be some cases where it get's filtered from getting interactionID but FID doesnt (the "state machine" for interactions is more complex than FID), but if you are saying the Event doesn't even get reported to Event Timing I would love a repro!
The aspiration in Chromium is to change the |
I believe the issue with the old code was that it would:
|
This is technically a breaking change, so if done it probably needs to be in v5. It's also pretty minor so it's not the end of the world if we close this as won't fix.
But it's a little strange that the
INPMetric.entries
array can include (basically) the same event twice if the event was also the first input. example:Maybe
entries
should be filtered of thefirst-input
entry if there's an otherwise identicalevent
entry? Or just drop thefirst-input
entry if the INP was long enough to not need it for timing?The text was updated successfully, but these errors were encountered: