jhu-bids / TermHub

Web app and CLI tools for working with biomedical terminologies. https://github.com/orgs/jhu-bids/projects/9/views/7
https://bit.ly/termhub
GNU General Public License v3.0
9 stars 10 forks source link

Prefetching & lazy loading: refactor #482

Open joeflack4 opened 1 year ago

joeflack4 commented 1 year ago

Overview

Right now, pages take a long time to load (e.g. 30-90 seconds in #473) because so much computation is taking place. We've made things better by doing some lazy loading and also having the frontend compute more data. However, some of these computations take a long time to run. So we should let things load and let the user interact with the app while other things are loaded.

Sub-task list

Sub-task details

1. Precision/recall

On the UI side of things, perhaps we want to show the precision/recall columns, but until the numbers are ready, display some text like "loading", or a spinner icon.

Additional info

We may want to consider what computation it makes sense to do on the backend, though it is likely that there's going to be a lot of value to doing a lot of computation on the frontend, for caching purposes.

Related

joeflack4 commented 5 months ago

@Sigfried Has this been done to satisfaction?