nextjs-toploader
nextjs-toploader copied to clipboard
Ability to exclude fragment route changes
Hi all,
I am wondering if we could add the ability to exclude fragment route changes.
For example, if we are navigating to example.com/page#fragment I would like to avoid showing the progress bar.
The use case is I use fragments on my website exclusively to jump around the already fully loaded current page so there is no need to show the top loader in these cases as it is distracting.
The change seems simple enough, add a configuration option to enable fragments and then do a check for fragment when redirecting to url.
I am happy to contribute a PR for it if maintainers are happy with idea.
Hey @TheSGJ , I put up a PR for your review, thanks 🙇