We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4ab006 commit 752610aCopy full SHA for 752610a
src/onLCP.ts
@@ -104,7 +104,10 @@ export const onLCP = (
104
// Wrap in a setTimeout so the callback is run in a separate task
105
// to avoid extending the keyboard/click handler to reduce INP impact
106
// https://github.com/GoogleChrome/web-vitals/issues/383
107
- addEventListener(type, () => whenIdle(stopListening), true);
+ addEventListener(type, () => whenIdle(stopListening), {
108
+ once: true,
109
+ capture: true,
110
+ });
111
});
112
113
onHidden(stopListening);
0 commit comments