Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit bf15067

Browse files
committed
Make IE 'fakeLoad' event async, to prevent reentrancy.
1 parent c22c0c4 commit bf15067

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/HTMLImports/parser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ var importParser = {
209209
}
210210
// dispatch a fake load event and continue parsing
211211
if (fakeLoad) {
212-
elt.dispatchEvent(new CustomEvent('load', {bubbles: false}));
212+
setTimeout(function() {
213+
elt.dispatchEvent(new CustomEvent('load', {bubbles: false}));
214+
});
213215
}
214216
}
215217
},

0 commit comments

Comments
 (0)