GoogleChrome / GoogleChrome/web-vitals

Add new `target` fallback for INP event

Open
#673 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.