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

Performance of docs page is really slow #3181

Closed
1 task done
space-nuko opened this issue Feb 11, 2023 · 5 comments
Closed
1 task done

Performance of docs page is really slow #3181

space-nuko opened this issue Feb 11, 2023 · 5 comments
Labels
docs/website Related to documentation or website

Comments

@space-nuko
Copy link
Contributor

space-nuko commented Feb 11, 2023

Describe the bug

Every time I try to go to https://www.gradio.app/docs it takes at least 30 seconds for the page to unfreeze just so I can look up some method signatures. I'd guess it's all the interactive examples on the page trying to load at once but 90% of the time I don't care about any of the examples and just want to verify an argument that can be passed to a gradio component. It's kinda stressful every time I realize I need to find out how to do something in gradio

And just to be sure my machine is top-spec, I have a Ryzen 8-core processor and a 3090

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

  1. Go to https://www.gradio.app/docs

Screenshot

No response

Logs

N/A

System Info

Windows Server 2022, Google Chrome Version 108.0.5359.99

Severity

annoying

@space-nuko space-nuko added the bug Something isn't working label Feb 11, 2023
@abidlabs abidlabs added docs/website Related to documentation or website and removed bug Something isn't working labels Feb 13, 2023
@freddyaboulton
Copy link
Collaborator

Thanks @space-nuko ! We're planning on rewriting the entire website to avoid having to load all the demos at once on page loads.

@pngwn
Copy link
Member

pngwn commented Feb 22, 2023

@space-nuko Is this still the case? We recently made some changes to gradio that significantly improved performance, could you test again and let us know if things have improved?

@space-nuko
Copy link
Contributor Author

Yeah it's definitely better than it was before, still stutters a bit for ~3 seconds every time I scroll past an example. It would be nice if the examples loaded only if you clicked on them. But this is much better than before

@pngwn
Copy link
Member

pngwn commented Feb 22, 2023

Making more improvements atm, so will keep this open to track. Thanks!

@abidlabs
Copy link
Member

abidlabs commented Oct 2, 2023

Should be a lot faster now, thanks to the Sveltekit migration! Thanks @aliabd and to @space-nuko for creating this issue in the first place

@abidlabs abidlabs closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs/website Related to documentation or website
Projects
None yet
Development

No branches or pull requests

4 participants