Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Dec 16, 2024
1 parent da24e94 commit 9b47f0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/attribution/onLCP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const attributeLCP = (metric: LCPMetric): LCPMetricWithAttribution => {
// bytes (firstInterimResponseStart) for consistency with other
// browers, but only if non-zero (so use || rather than ??) as zero
// indicates no early hints.
navigationEntry.firstInterimResponseStart ||
navigationEntry.responseStart - activationStart,
(navigationEntry.firstInterimResponseStart ||
navigationEntry.responseStart) - activationStart,
);

const lcpRequestStart = Math.max(
Expand Down

0 comments on commit 9b47f0c

Please sign in to comment.