seanmturley / natureddit

A simple Reddit client, featuring a landing page dedicated to nature with posts pulled from a curated list of subreddits.
0 stars 1 forks source link

Investigate flicker between initial loading splash and app loading #175

Closed seanmturley closed 4 months ago

seanmturley commented 5 months ago

Description

Investigate flicker between initial loading splash and app loading. Unfortunately it's possibly unavoidable with current implementation approach to the loading splash - it's not clear if there are alternative approaches that would avoid the problem.

seanmturley commented 4 months ago

Having the initial background-color of .App match the page background colour after loading greatly minimizes the jarring appearance of the flicker.

In doing this, the background of the LoadingOverlay itself was removed - this needs to be added in again specifically for loading during intra-app navigation.

seanmturley commented 4 months ago

Re-added the background for LoadingOverlay specifically when navigating. This included a colour tweak for the spinner in light-theme.

Overall this is looking pretty good now, so this can be closed.