Skip to content

Commit 857e3c5

Browse files
committed
fix: incorrectly attributing HMR as a long task
1 parent 8fc56ff commit 857e3c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/scan/src/core/notifications/event-tracking.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ export function startLongPipelineTracking() {
356356
if (
357357
duration > HIGH_SEVERITY_FPS_DROP_TIME &&
358358
!taskConsideredDirty &&
359+
document.visibilityState === 'visible' &&
359360
!wasTaskInfluencedByToolbar
360361
) {
361362
const endAt = endOrigin + endNow;

0 commit comments

Comments
 (0)