[gatsby-plugin-nprogress]: change default show delay
See original GitHub issueHello,
I’ve just implemented gatsby-plugin-nprogress
. Easy to set up and works out of the box, love it.
However I was wondering if it’s possible to change the default show delay. What I mean is by default Gatsby displays the NProgress
component after 1 second of a link being clicked - I’d like to change this to something shorter, perhaps 600ms.
Thanks a lot
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (16 by maintainers)
Top Results From Across the Web
Developers - [gatsby-plugin-nprogress]: change default show delay -
Hello,. I've just implemented gatsby-plugin-nprogress . Easy to set up and works out of the box, love it. However I was wondering if...
Read more >gatsby-plugin-nprogress
Automatically shows the accessible-nprogress indicator when a page is delayed in loading (which Gatsby considers as one second after clicking on a link)....
Read more >My Top Plugins for a GatsbyJS Powered Blog
According to the gatsby plugin library, it “automatically shows the nprogress indicator when a page is delayed in loading (which Gatsby ...
Read more >gatsby-plugin-nprogress examples - CodeSandbox
Learn how to use gatsby-plugin-nprogress by viewing and forking gatsby-plugin-nprogress example apps on CodeSandbox.
Read more >gatsby-plugin-nprogress - npm
Shows page loading indicator when loading page resources is delayed. Latest version: 5.3.0, last published: 9 days ago.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@KyleAMathews Ah, that explains it.
Ok, I’ve been having some thoughts about how this work could be done in smaller PRs. This is my first contribution to Gatsby and I think as an initial PR it’s a bit overwhelming to start refactoring internal events and creating a navigation lifecycle API.
I’d like to propose the following:
delay
value untilNProgress
is displayedDoes that sound reasonable for you?
So is it possible to reduce the delay from 1000 to 0 ?