-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gatsby-plugin-nprogress]: Implement a delay
option
#3530
Comments
This would be awesome. The default delay seems to be too long, at least for us. It takes a good couple of seconds to start showing on our website. It would be awesome if we could show it immediately. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub issues, we have to clean some of the old issues as many of them have already been resolved with the latest updates. Please make sure to update to the latest Gatsby version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
This issue is being closed because there hasn't been any activity for at least 30 days. Feel free to open a new one if you still experience this problem 👍 |
Allow the user to define when to display the
NProgress
bar, rather than it being determined by Gatsby internally.Currently,
NProgress.start()
is called when Gatsby emits aonDelayedLoadPageResources
event.I think the user should be able to configure when
NProgress
starts. Some user may want to show it immediately (as Medium and YouTube) and some may choose to display it after1000ms
.I think it makes more sense to tackle this once #3528 has been done, so we can hook to the new events.
How I see it working right now, would be something like this:
We can define a default
delay
value, as we do forcolor
.Any alternatives or improvements on this?
Thanks!
The text was updated successfully, but these errors were encountered: