Commit d4e8802
fix(landing): drop top-level await so window.load handler binds in time
The earlier fix used `await import(...)` to defer prism-sql until after
window.Prism was assigned. Top-level await turned the inline module into an
asynchronous evaluation, which let `window.load` fire before the
`addEventListener("load", buildHeroGraph)` line ran — so on Pages the hero
ER graph never built and the canvas stayed blank with no console error.
Use fire-and-forget dynamic import; syntax highlighting can fail silently
without taking the hero down with it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7922b84 commit d4e8802
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1962 | 1962 | | |
1963 | 1963 | | |
1964 | 1964 | | |
1965 | | - | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
1966 | 1969 | | |
1967 | | - | |
| 1970 | + | |
1968 | 1971 | | |
1969 | 1972 | | |
1970 | 1973 | | |
| |||
0 commit comments