question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[gatsby-plugin-nprogress]: change default show delay

See original GitHub issue

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 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:closed
  • Created 6 years ago
  • Comments:17 (16 by maintainers)

github_iconTop GitHub Comments

5reactions
peduartecommented, Jan 12, 2018

@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:

  • A PR for defining a custom delay value until NProgress is displayed
  • A PR for refactoring Navigation Lifecycle API

Does that sound reasonable for you?

4reactions
VickyPhotoncommented, Apr 24, 2019

So is it possible to reduce the delay from 1000 to 0 ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found