Loading screen takes too long #379
Labels
No labels
bug
chore
documentation
enhancement
help
in-progress
question
ready-for-release
released
translation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
adam/gate#379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every navigation change shows the loading screen regardless of how long the page takes to actually load. It's visually jarring.
github.com/voidauth/voidauth@0ddbf8777f/frontend/src/app/services/spinner.service.ts (L7-L30)This timeout means that the loading screen will be displayed even if the page takes less than 500 ms to load.
Perhaps it would be better to only show the loading screen if it takes longer than some threshold or just add an option to disable it altogether.
I've played with this a bit and might have a solution. The 500ms timer is to make sure that the loading spinner does not open for less than half a second, which would appear as a quick flicker. I have some code working that waits to open the loading spinner for a bit, then if still loading opens it for at least a second. The only issue is that, due to the single threaded nature of browser js, sometimes this looks like:
This results in the spinner only opening after all the loading is finished, which is not great. I will keep messing with it and see if I can figure it out.