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

Defer score calculation to after page load #5

Open
blankey1337 opened this issue Jul 25, 2022 · 0 comments
Open

Defer score calculation to after page load #5

blankey1337 opened this issue Jul 25, 2022 · 0 comments

Comments

@blankey1337
Copy link
Member

blankey1337 commented Jul 25, 2022

Currently, scores are calculated on page load inside of a server-side function. We should defer the calling of this function (basically just call the API instead), until after page load, asynchronously. This will allow us to show a loading spinner to the user, which will increase the expectation and feedback loop that something is happening. This will dramatically improve the user's perceived performance of the app, and result in less duplicate entries in the database (which is caused by users refreshing the page whilst the score is still being calculated).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant