Skip to content

Commit

Permalink
Ignore 0 fistInterim ResponseStart
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Nov 18, 2024
1 parent 758048a commit cb4ae6d
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 @@ -51,7 +51,7 @@ const attributeLCP = (metric: LCPMetric): LCPMetricWithAttribution => {
// bytes, rather than Early Hint bytes. Prefer the Early Hint bytes
// (firstInterimResponseStart) for consistency with other browers, if
// non-zero
navigationEntry.firstInterimResponseStart ??
navigationEntry.firstInterimResponseStart ||
navigationEntry.responseStart - activationStart,
);

Expand Down

0 comments on commit cb4ae6d

Please sign in to comment.