[gatsby-plugin-nprogress]: Implement a delay
option
#3530
Labels
stale?
Issue that may be closed soon due to the original author not responding any more.
delay
option
#3530
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: