Commit 1226279
committed
defer external script parsing until after DOMContentLoaded
Fixes #533. External behavior files loaded via
<script type="text/hyperscript" src="..."> were being parsed before
plugins like hdb.js could register their commands, causing
"Unexpected Token: breakpoint" errors.
The fix separates fetch from parse: external files are still fetched
immediately for performance, but parsing is deferred until after
ready() fires, giving synchronous plugin scripts time to register.
Signed-off-by: André Ahlert <andre@aex.partners>1 parent adeeb31 commit 1226279
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
187 | 188 | | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
0 commit comments