Preloader won't ignore websocket - js pace

I added a preloader to my website that works with ruby ​​on rails, it seems to work fine, but because of the pusher web sites, the preloader does not end, it waits all the time, I tried this on my footer,

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

but it didn’t work. how can i solve this problem?

+8
source share
1 answer

I tried this, it worked. :)

 Pace.options.ajax.trackWebSockets = false; 
+13
source

All Articles