Skip to content

Commit

Permalink
Remove redundant renderTime const
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Aug 30, 2024
1 parent 0a2d2cc commit 3693a82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/attribution/onLCP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 3693a82

Please sign in to comment.