We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbd7e1 commit 6710e2cCopy full SHA for 6710e2c
src/snapshot.ts
@@ -327,7 +327,9 @@ function onceIframeLoaded(
327
iframeEl.src === blankUrl ||
328
iframeEl.src === ''
329
) {
330
- listener();
+ // iframe was already loaded, make sure we wait to trigger the listener
331
+ // till _after_ the mutation that found this iframe has had time to process
332
+ setTimeout(listener, 0);
333
return;
334
}
335
// use default listener
0 commit comments