rstacruz / nprogress

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

Allow passing in an alternate scheduler function #161

Open alexlafroscia opened 7 years ago

alexlafroscia commented 7 years ago

While trying to get nprogress to play nice with Ember.js, it became necessary to be able to provide an alternate scheduling function, since Ember needs to know about setTimeout code.

By default, the code works exactly the same, but if given a scheduler function in the configuration, it will use that instead. This allows Ember to provide it's own scheduling function, allowing the two to play nice together.