Pace.js(Progress bar) for Ajax request is not working

7.2k Views Asked by At

In the documentation, it is written that you don't need to write code in general to use it. I have added that in my website, It is working fine on page load. But for any ajax request, it is not working. Do I need to add anything for ajax request?

1

There are 1 best solutions below

2
Akshay On BEST ANSWER

In your case you will need $(document).ajaxStart(function() { Pace.restart(); });

http://jsfiddle.net/QZ3ff/2865/