Commit f9b868c
committed
Support async loading
Fixes widget not initializing if loaded async or after the `DOMContentLoaded` event fires. That event fires when `readystate` changes from initial state `loading` to `interactive`, so we should only use the listener if the current state is `loading`.1 parent 44b94de commit f9b868c
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | | - | |
| 15 | + | |
0 commit comments