pace
pace copied to clipboard
Pace.stop() causes extra entries in _intercept.bindings for AjaxMonitor.watch
Tested with chrome and Pace 1.0.2:
- Set a breakpoint in the constructor of AjaxMonitor and watch getIntercept().bindings
- load a simple html page with Pace on it
- call Pace.stop() -> size of getIntercept().bindings will grow with each "Pace.stop()".
This leads to issues when reconnecting WebSockets: Creating a new Websocket triggers Pace.restart, and the request will be watched multiple times.
I think you have to add below pace options then it will not track Websocket.
window.paceOptions = { ajax: { ignoreURLs: ['signalr', '__browserLink', 'browserLinkSignalR'], trackWebSockets: false } }