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

Study page takes 50 seconds to load (blocks on request to data.crossite.org) #1520

Open
eecavanna opened this issue Jan 22, 2025 · 0 comments

Comments

@eecavanna
Copy link
Collaborator

When I visited this URL on my local machine, the page took 40 seconds to load: https://data.microbiomedata.org/details/study/nmdc:sty-11-prtb4s28

When I checked my web browser's DevTools panel (i.e., its "Network" tab), I saw that there were two HTTP request/response cycles that took 10+ seconds each, happened serially rather than in parallel, and which blocked the UI from being displayed.

Image

The requests were to:

I briefly discussed this with @naglepuff in passing today and he suggested something that I am in favor of, which is: assuming we have to fetch data from these URLs, update the Data Portal client (code) to display spinners on the specific UI elements that depend on the fetched data. In addition, update the Data Portal client (code) to (a) not block on those fetches — proceed to show the UI while the fetches are happening; and (b) do the fetches in parallel, not in serial.

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