Skip to content

Commit

Permalink
Fix edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hyndman committed Apr 2, 2024
1 parent 418ac05 commit e2eb096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/networkIdleObservable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class ResourceLoadingIdleObservable {
(element instanceof HTMLImageElement && element.complete) ||
(element instanceof HTMLLinkElement && !element.href) ||
(element instanceof HTMLScriptElement && !element.src) ||
(element instanceof HTMLIFrameElement && !element.src)
(element instanceof HTMLIFrameElement && (!element.src || element.src === 'about:blank'))
) {
return;
}
Expand Down

0 comments on commit e2eb096

Please sign in to comment.