rstacruz / nprogress

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

Integration with Wiselinks #94

Open 0bserver07 opened 9 years ago

0bserver07 commented 9 years ago

I tried to do it in a few different ways as it was resolved for Turbolinks, but I couldn't get it working with Wiselinks https://github.com/igor-alexandrov/wiselinks

caarlos0 commented 9 years ago

I believe you just have to listen the correct js events.

You can take a look at nprogress-rails, which solves this for turbolinks and jquery.

phlegx commented 9 years ago

@0bserver07 you can use:

    $(document).on('page:loading', function() { NProgress.start();  });
    $(document).on('page:always',  function() { NProgress.done();   });