I recently implemented a preloader on my website built with Ruby on Rails. Everything seems to be working perfectly, except for the fact that due to Pusher websockets, the preloader does not stop and keeps running indefinitely. I attempted to address this issue by adding the following script in my footer:
<script>
window.paceOptions = {
ajax: {
trackWebSockets: false,
ignoreURLs: [/pusher/, /heap/]
}
}
</script>
Unfortunately, this solution did not resolve the problem. How can I go about fixing this issue?