diff --git a/sandbox/InteractionToNextSoftLCP/interaction_to_next_soft_lcp.ts b/sandbox/InteractionToNextSoftLCP/interaction_to_next_soft_lcp.ts index b831ade..59ef278 100644 --- a/sandbox/InteractionToNextSoftLCP/interaction_to_next_soft_lcp.ts +++ b/sandbox/InteractionToNextSoftLCP/interaction_to_next_soft_lcp.ts @@ -85,7 +85,6 @@ async function measureNextFCPLCP(connectToDeferredSoftNav, abortSignal) { return [nextFCP.promise, nextLCP.promise]; } -let abortController; // Only one stored interaction seems to work at a time. // If there is an "async" operation after interaction and a new event arrives, the previous @@ -118,6 +117,8 @@ function createDeferredSoftNav() { }; } +let abortController; + export function wrapper(callback) { return (event) => { const nextINP = measureNextINP(event.timeStamp, event.type);