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

Flutter web's canvaskit.wasm is too slow #82757

Closed
steeling opened this issue May 17, 2021 · 2 comments
Closed

Flutter web's canvaskit.wasm is too slow #82757

steeling opened this issue May 17, 2021 · 2 comments
Labels
r: duplicate Issue is closed as a duplicate of an existing issue

Comments

@steeling
Copy link

Flutter web requires canvaskit.wasm to download prior to painting anything on the screen. This is hardcoded to https://unpkg.com/canvaskit-wasm@0.24.0/bin/canvaskit.wasm, which is having issues.

I'm seeing 10+ second load times to downloading this file, which blocks the entire app. This should be moved to a new location that loads much faster, or we should have the flexibility to host it ourselves and point to it.

A couple ways to repeat this

curl -o /dev/null -s "https://unpkg.com/canvaskit-wasm@0.24.0/bin/canvaskit.wasm" -w %{time_connect}:%{time_starttransfer}:%{time_total}

Open a tab in chrome and open the network tab in developer tools. Then click "disable cache", and browse to your app. You should see in the list of network requests the calls being made to download the wasm files.

I'd expect the file to load in < 500 ms. Can you please allow us to change the link at which this downloads, or put such a popular library on a CDN?

@TahaTesser TahaTesser added the in triage Presently being triaged by the triage team label May 18, 2021
@TahaTesser
Copy link
Member

Hi @steeling
I see there's an open issue addressing the case you described.
Please follow up on that issue, Closing as duplicate of #76009
If you disagree, please write in the comments and I will reopen it.
Thank you

@TahaTesser TahaTesser added r: duplicate Issue is closed as a duplicate of an existing issue and removed in triage Presently being triaged by the triage team labels May 18, 2021
@github-actions
Copy link

github-actions bot commented Aug 1, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: duplicate Issue is closed as a duplicate of an existing issue
Projects
None yet
Development

No branches or pull requests

2 participants