benvinegar/counterscale

Add loading indicators when data being fetched

benvinegar opened this issue · 4 comments

I notice that queries are taking a bit more time than in the past – it sometimes take 2-3 seconds to serve a new page during which there is no visual indicator to the user.

Would you prefer streaming data for specific components/sections using remix defer (I'm not sure if it works for client side navigations after the first) or a global visual indicator like NProgress?

I've tried a simple opacity transition while navigating, I'm pretty effective to be honest

After

CleanShot.2024-04-04.at.01.59.53.mp4

Before

CleanShot.2024-04-04.at.02.05.46.mp4

I've tried a simple opacity transition while navigating

I think it looks great!

I've tried a simple opacity transition while navigating

I think it looks great!

sending a PR 👌