Skip to content

INP longAnimationFrameEntries doesn't contain relevant script #630

@mattzeunert

Description

@mattzeunert

How to replicate

  1. Go to https://glimmer-complete-source.glitch.me/
  2. Click Button 1, then Button 2
  3. Wait a few seconds
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions