Skip to content

Allow running multiple instances in one browser context, prefer user defined HTML #829

Open

Description

@MichaelBelousov

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?

Activity

  1. MichaelBelousov commented on Oct 24, 2026

    @MichaelBelousov
    ContributorAuthor

    I think I will make a PR for this

  2. foxnne commented on Oct 26, 2026

    @foxnne
    Collaborator

    Thank you!

  3. fizzy-pm commented on Oct 26, 2026

    @fizzy-pm

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions