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

[meta] Improve initial load time #361

Open
sstangl opened this issue May 27, 2024 · 1 comment
Open

[meta] Improve initial load time #361

sstangl opened this issue May 27, 2024 · 1 comment

Comments

@sstangl
Copy link
Contributor

sstangl commented May 27, 2024

OpenWeightlifting currently takes around 4.3 seconds from request initiating to rendering the leaderboard, measured without cache (ctrl-shift-R), with an ad-blocker enabled. OpenPowerlifting takes about 650ms. Faster time to full render makes for a significantly more pleasant user experience.

It looks like the time is currently divided up like this:

  • Initial backend render: ~880ms
  • Fetch a large number of script assets: ~1500ms
  • Script execution: ~1400ms
  • Get /leaderboard: ~500ms

This issue is mainly to ask if it would be in-scope to set such a target, and then if so, to work backwards to figure out technical details to meet that target.

@euanwm
Copy link
Owner

euanwm commented Jul 30, 2024

Playing around with Svelte on this as a potential FE replacement as NextJS is the bottleneck.

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

2 participants