apal21 / nextjs-progressbar

A simple Next.js progressbar component using NProgress.

Home Page:https://www.npmjs.com/package/nextjs-progressbar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading indicator delay

anubra266 opened this issue · comments

It's often preferable to delay showing the loading indicator until a request has taken longer than 250ms-500ms. This prevents the loading indicator from appearing constantly on quick page visits, which can be visually distracting.

<NextNprogress
        color="#29D"
        startPosition={0.3}
        delayMs={250}
        stopDelayMs={200}
        height="2"
      />