6

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?

Niks
  • 95
  • 1
  • 5
  • What do you mean by not working? Which theme do you use? do you use jQuery's ajax everytime or any other framework? – Akshay Mar 27 '17 at 12:51

1 Answers1

11

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

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

Akshay
  • 3,558
  • 4
  • 43
  • 77
  • This is the example, when I run this code it works perfectly fine but not in the case of ajax request. http://jsfiddle.net/QZ3ff/2857/ – Niks Mar 27 '17 at 13:10
  • This is what I need, Thanks for quick reply :) – Niks Mar 27 '17 at 16:58