Open spq24 opened 7 years ago
I want Pace to ignore an ajax request with a certain url...but I'll settle for ignoring all ajax requests if I have to.
I've tried:
<script> Pace.options = { ajax: false }; </script>
and
<script> window.paceOptions = { ajax: false, restartOnPushState: false, restartOnRequestAfter: false } </script>
<script> window.paceOptions = { ajax: { ignoreURLS: [/.notifications./] } }; </script>
but nothing has worked. Do I have to do something different since I'm using this gem?
I want Pace to ignore an ajax request with a certain url...but I'll settle for ignoring all ajax requests if I have to.
I've tried:
<script> Pace.options = { ajax: false }; </script>
and
<script> window.paceOptions = { ajax: false, restartOnPushState: false, restartOnRequestAfter: false } </script>
and
<script> window.paceOptions = { ajax: { ignoreURLS: [/.notifications./] } }; </script>
but nothing has worked. Do I have to do something different since I'm using this gem?