From 9b47f0c2a438c3ca70ddd3d955e853cf903c1124 Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Mon, 16 Dec 2024 23:04:00 +0000 Subject: [PATCH] Fix bug --- src/attribution/onLCP.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/attribution/onLCP.ts b/src/attribution/onLCP.ts index 43f03a29..352a0b15 100644 --- a/src/attribution/onLCP.ts +++ b/src/attribution/onLCP.ts @@ -52,8 +52,8 @@ const attributeLCP = (metric: LCPMetric): LCPMetricWithAttribution => { // bytes (firstInterimResponseStart) for consistency with other // browers, but only if non-zero (so use || rather than ??) as zero // indicates no early hints. - navigationEntry.firstInterimResponseStart || - navigationEntry.responseStart - activationStart, + (navigationEntry.firstInterimResponseStart || + navigationEntry.responseStart) - activationStart, ); const lcpRequestStart = Math.max(