How to replicate
- Go to https://glimmer-complete-source.glitch.me/
- Click Button 1, then Button 2
- Wait a few seconds
- Check the DevTools console
The first button starts two timeouts, the second button just blocks the CPU right away.
What should happen
web-vitals.js should report the button click handler LoAF script in the INP attribution data.
What happens instead
I get this in the logs:
Interaction from 2090 to 4946
INP LoAFs
1910 - 3910: TimerHandler:setTimeout
LoAFs
1910 - 3910: TimerHandler:setTimeout
3910 - 4910: BUTTON#button-2.onclick
4910 - 6910: TimerHandler:setTimeout
Even though the onclick LoAF script runs during the interaction, it is not included in the attribution LoAF data.