tldraw / tldraw

SDK for creating whiteboards and canvas experiences on the web.
https://tldraw.dev
Other
33.88k stars 2.03k forks source link

Better feedback during loading #1261

Open judicaelandria opened 1 year ago

judicaelandria commented 1 year ago

The beta website is kinda slow and the spinner is not loading, it's kinda stuck more info in the video

https://user-images.githubusercontent.com/46365844/216378032-ab291e85-1c0c-4b2c-a9e8-671df7f2dbb6.mov

TodePond commented 1 year ago

Hey is that a large image in the canvas? Do you have this in a multiplayer room somewhere, that we could check out?

judicaelandria commented 1 year ago

Hey yes it is! and somehow I cannot paste an image in the multiplayer room, it just past the image name

TodePond commented 1 year ago

Could you share the specific image here possibly? :)

judicaelandria commented 1 year ago
Screenshot 2023-01-30 at 8 59 25 AM

NB: I think the upload is working but it takes like 10+ to upload the image then it render it but after it rerender the image

TodePond commented 1 year ago

I guess tldraw should reduce the size of very big images like this! We're trying something out for this now :)

TodePond commented 1 year ago

Hey we're now scaling down large images! Does it work better on https://staging.tldraw.com now?

judicaelandria commented 1 year ago

it is faster on local yes, but not on multiplayer mode

TodePond commented 1 year ago

I'm thinking that might be due to the time it takes to download such a large file 🤔

judicaelandria commented 1 year ago

the non-multiplayer mode is downloading the large file too but it seems to be a lot faster than the multiplayer mode

TodePond commented 1 year ago

In non-multiplayer, the file is stored locally so it doesn't need to be downloaded - maybe that's it!

judicaelandria commented 1 year ago

yeah, maybe that's it! but I think it's better to show some sort of a loading state, just to tell the user that it's loading the image?

TodePond commented 1 year ago

Ok cool, glad we're figuring this out :) Yes I agree!