GoogleChrome / GoogleChrome/web-vitals
Add new `target` fallback for INP event
Open
- Dominant language
- JavaScript
- Stars
- 8.6k
- Forks
- 530
- Avg merge
- 3h 4m
- Merged PRs (30d)
- 3
Description
See: https://chromestatus.com/feature/5143499213242368 (not shipped yet).
We should continue to use our own selector logic where possible as it's more complete (and customizable), but fallback to this one when the node is empty so that can't be used.
Contributor guide
Research direction
Start by reviewing the existing INP event target selector logic and the linked ChromeStatus feature 5143499213242368. Preserve the current selector where it returns a node, and use the new target only when the node is empty; verify the resulting target behavior with the relevant existing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100