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
Getting Github star / fork count is somewhat expensive #843
Comments
Actually, GitHub stars are cached in a Cookie (could use Local Storage, yeah, but it works for now). The theme loads all projects from a user/organization because some people like to link their organization. This was implemented in #337. |
Ah, I guess then the problem was that I tested on localhost. I think with caching usually working, no reason to optimize further. Sorry for the hiccup. |
Skimming through the code, I remember why we did it: some users use Material to host documentation for their private repositories. They enter the URL to their repository in Why would somebody want to use this feature with a private repo? Because the The issue in which this was reported and discussed is #329. |
Thanks for the information! 👍 |
Description
Great work on the design!
Each time a page is opened, the star / fork count is loaded another time. Also it seems it tries to find the repository by enumerating all repositories of the user which might even need several round-trips to github to get this simple info.
No Javascript developer here, so please bear with me ;)
I'd suggest to:
The text was updated successfully, but these errors were encountered: