Commit ad8ad2d
web: vendor webmidi locally to fix editor/run page hang (amyboard + tulip web) (#1064)
* amyboardweb: vendor webmidi locally to fix editor page hang
The editor loaded webmidi.js as a render-blocking <script src> pointing at
cdn.jsdelivr.net/npm/webmidi@latest. When jsdelivr's @latest/ranged version
resolution for that package stalls, the synchronous script blocks the browser
from rendering the rest of /editor/, so the page hangs (the marketing site is
unaffected because it doesn't load webmidi).
Self-host webmidi v3.1.16 (the version @latest currently resolves to) under
static/vendor/, matching the existing vendor/qwerty-hancock.min.js pattern, and
reference the local copy. This removes the third-party render-blocking
dependency and pins the version so a future @latest change can't stall or break
the editor.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* tulip/web: vendor webmidi locally too (same editor-hang fix)
Tulip Web's /run/ page had the same render-blocking
cdn.jsdelivr.net/npm/webmidi@latest <script> that hangs the page when
jsdelivr's @latest resolution stalls. Self-host webmidi v3.1.16 alongside the
other flat static JS (tree.js, spss.js, mini-coi.js) — build.sh's `cp static/*`
is non-recursive, so it goes in static/ root rather than a vendor/ subdir — and
reference it via the same-origin <base href="/run/">.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6d7b3f9 commit ad8ad2d
4 files changed
Lines changed: 23268 additions & 2 deletions
File tree
- tulip
- amyboardweb/static
- editor
- vendor
- web/static
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments