Circular loader only shows a tiny sliver for short loads #228
-
The Video, recorded from Data Visualizer loading.mov |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
I think this "issue" came up already a couple of time, I'm not really sure how to address is properly as we don't know how long a request will take unless we implement a prediction system (which can range from being very naive - manually done per request per app - to extremely sophisticated - test internet speed on app init, store which requests typically request a lot of data and only show the loading spinner there if the internet is slow, etc). If I'm not mistaken @cooper-joe has proposed something along the lines of delaying the loading spinner display so it will only show if loading will take a certain amount of time. But it could very well be that we'd see more partially rendered loading spinners that way. I also don't know how to figure out if our solution is a good one at all (because we'd need to see how it behaves "in the wild" with real world data). I guess the easiest solution is just to ignore that this happens. It's not beautiful but at the same time not harmful at all. It would cost us a lot of time to address this even though it's not really causing any harm. I'm curious though what the others think (cc @dhis2/front-end) |
Beta Was this translation helpful? Give feedback.
I think this "issue" came up already a couple of time, I'm not really sure how to address is properly as we don't know how long a request will take unless we implement a prediction system (which can range from being very naive - manually done per request per app - to extremely sophisticated - test internet speed on app init, store which requests typically request a lot of data and only show the loading spinner there if the internet is slow, etc).
If I'm not mistaken @cooper-joe has proposed something along the lines of delaying the loading spinner display so it will only show if loading will take a certain amount of time. But it could very well be that we'd see more partially rendered loa…