Skip to content

Commit

Permalink
duration --> total
Browse files Browse the repository at this point in the history
  • Loading branch information
rviscomi committed Aug 21, 2023
1 parent 5f89e60 commit 1a2fc9c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/js/send-web-vitals.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ function sendWebVitals() {
// LoAFs that intersect with the event.
return entry.startTime < (loaf.startTime + loaf.duration) && loaf.startTime < (entry.startTime + entry.duration);
}).forEach(loaf => {
if (loaf.duration <= loafAttribution.duration) {
return;
}

loaf.scripts.forEach(script => {
const total = script.startTime + script.duration - script.desiredExecutionStart;
if (total > loafAttribution.total) {
Expand Down

0 comments on commit 1a2fc9c

Please sign in to comment.