Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Sep 27, 2024
1 parent 3693a82 commit 0136440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attribution/onLCP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const attributeLCP = (metric: LCPMetric): LCPMetricWithAttribution => {
);
const lcpResponseEnd = Math.min(
// Cap at LCP time (videos continue downloading after LCP for example)
lcpEntry.startTime - activationStart,
metric.value,
Math.max(
lcpRequestStart,
lcpResourceEntry ? lcpResourceEntry.responseEnd - activationStart : 0,
Expand Down

0 comments on commit 0136440

Please sign in to comment.