Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix instantiateStreaming usage on web #3209

Merged
merged 1 commit into from
Sep 5, 2023
Merged

Conversation

jprochazk
Copy link
Member

@jprochazk jprochazk commented Sep 5, 2023

What

This is a fix for:
image

The WASM was being fetched in full before instantiation (the await res.blob()), so we weren't getting the benefit of instantiateStreaming. This PR should also improve loading times on slow connections.

Checklist

@jprochazk jprochazk added the 🕸️ web regarding running the viewer in a browser label Sep 5, 2023
@jprochazk jprochazk merged commit 692f655 into main Sep 5, 2023
@jprochazk jprochazk deleted the jan/fix-wasm-streaming branch September 5, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕸️ web regarding running the viewer in a browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant