From 0a2d2cc780d3c10fdf7793d48e42de68adbcf4ce Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Fri, 30 Aug 2024 19:47:40 +0100 Subject: [PATCH] Review feedback --- src/attribution/onLCP.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/attribution/onLCP.ts b/src/attribution/onLCP.ts index bf7c6aec..7c155de9 100644 --- a/src/attribution/onLCP.ts +++ b/src/attribution/onLCP.ts @@ -62,10 +62,7 @@ const attributeLCP = (metric: LCPMetric): LCPMetricWithAttribution => { lcpResourceEntry ? lcpResourceEntry.responseEnd - activationStart : 0, ), ); - const lcpRenderTime = Math.max( - lcpResponseEnd, - lcpEntry.startTime - activationStart, - ); + const lcpRenderTime = metric.value; attribution = { element: getSelector(lcpEntry.element),