Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preloader wont ignore websocket - pace js

I added preloader to my website which runs with ruby on rails, it seems it works perfectly, but because of pusher websockets, preloader does not end, it waits all the time, i tried this at my footer,

<script>
window.paceOptions = {
    ajax: {
      trackWebSockets: false,
      ignoreURLs: [/pusher/, /heap/]
    }
  }
</script>

but it did not work. how can I solve this problem?

like image 645
Yunus Hatipoglu Avatar asked Oct 26 '15 09:10

Yunus Hatipoglu


1 Answers

I tried this one, it worked. :)

Pace.options.ajax.trackWebSockets = false;
like image 118
Yunus Hatipoglu Avatar answered Oct 30 '22 11:10

Yunus Hatipoglu