Yunus Hatipoglu Yunus Hatipoglu - 2 years ago 228
Ruby Question

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,

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

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

Answer Source

I tried this one, it worked. :)

Pace.options.ajax.trackWebSockets = false;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download