You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow running multiple instances in one browser context, prefer user defined HTML #829
The current fizzy app's web build includes its own HTML file and is embedded as an iframe.
But iframes can be heavy.
DVUI has a neat (disclaimer, I added it), javascript entrypoint that you can use to create multiple new DVUI() instances, which can function independently in one javascript context. This is less heavy than say, if you want to have a demo site with multiple independent demos, not needing to spawn 3 iframes that each spawn a JIT process for a 12MB wasm blob.
Can fizzy also have a lower level javascript library that spawns the DVUI instance and attaches everything necessary, without consumers needing to use your index.html file? And the consumer can bring their own?
Thanks for this, Michael. Your #835 covers most of what this asks for, and it's going in as your PR. A few gaps remain (keys reaching the host page's own text fields, fullscreen taking the whole page, one wasm compile shared by all copies), and we'll write those ourselves as a follow-up with a test that mounts two copies on one page. Credit stays with you, and we'll close this when that lands.
Activity
MichaelBelousov commentedon Oct 24, 2026
I think I will make a PR for this
foxnne commentedon Oct 26, 2026
Thank you!
fizzy-pm commentedon Oct 26, 2026
Thanks for this, Michael. Your #835 covers most of what this asks for, and it's going in as your PR. A few gaps remain (keys reaching the host page's own text fields, fullscreen taking the whole page, one wasm compile shared by all copies), and we'll write those ourselves as a follow-up with a test that mounts two copies on one page. Credit stays with you, and we'll close this when that lands.