rstacruz / nprogress

For slim progress bars like on YouTube, Medium, etc
http://ricostacruz.com/nprogress
MIT License
26.11k stars 1.81k forks source link

How to ignore certain URLs and not show progress bar #147

Open joshco opened 8 years ago

joshco commented 8 years ago

How can I configure nprogress to ignore certain URLs. In my case, I want to ignore showing the progress bar while loading of the facebook SDK.

Making Facebook SDK work with turbolinks means that the sdk reload is triggered on page:fetch||change|load. So what happens is that my page loads via turbo links (with the slick nprogress bar) then it it "finishes", and then when turbolinks triggers the FB reload, the progress bar comes back while that is loading. it's a jarring UX, as the FB library isn't needed on most pages (but turbolinks alas)

It would be great if there was a config option to exempt certain urls. Is there a way to do this?

frankie-loves-jesus commented 8 years ago

Could you put up a reduced test case? Check out http://css-tricks.com/reduced-test-cases/ on why they're so great.

Creating a reduced test case is the best way to get your issue addressed. They help you point out the problem. They help us debug the problem. They help others understand the problem.