Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 904
Niks Avatar asked Mar 27 '17 12:03

Niks


1 Answers

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

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

like image 77
Akshay Avatar answered Nov 17 '22 22:11

Akshay