From 3693a82dc7d9426473af68ab93a769ad41f082ce Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Fri, 30 Aug 2024 19:54:29 +0100 Subject: [PATCH] Remove redundant renderTime const --- src/attribution/onLCP.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/attribution/onLCP.ts b/src/attribution/onLCP.ts index 7c155de9..294af7ec 100644 --- a/src/attribution/onLCP.ts +++ b/src/attribution/onLCP.ts @@ -62,14 +62,13 @@ const attributeLCP = (metric: LCPMetric): LCPMetricWithAttribution => { lcpResourceEntry ? lcpResourceEntry.responseEnd - activationStart : 0, ), ); - const lcpRenderTime = metric.value; attribution = { element: getSelector(lcpEntry.element), timeToFirstByte: ttfb, resourceLoadDelay: lcpRequestStart - ttfb, resourceLoadDuration: lcpResponseEnd - lcpRequestStart, - elementRenderDelay: lcpRenderTime - lcpResponseEnd, + elementRenderDelay: metric.value - lcpResponseEnd, navigationEntry, lcpEntry, };