TheSGJ / nextjs-toploader

A Next.js Top Loading Bar component made using nprogress, works with Next.js 14 , Next.js 13 and React.
https://www.npmjs.com/package/nextjs-toploader
MIT License
622 stars 43 forks source link

Delay progress bar if page is loaded within N ms #17

Open switz opened 1 year ago

switz commented 1 year ago

https://github.com/rstacruz/nprogress/issues/169

I don't want to show the progress bar if the page loads in under n milliseconds, seems unnecessary for pages that load very very fast (which is most of the time).

drdla commented 3 months ago

Anything below ~ 500 ms does not need an indicator from a user's perspective. Always showing the progress indicator in fact deteriorates user experience for fast page loads, because it is a rather distracting flash.