Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Aug 30, 2024
1 parent 7e86a73 commit 0a2d2cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/attribution/onLCP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 0a2d2cc

Please sign in to comment.