pace
pace copied to clipboard
ignoreurl not working
how we can ignore urls to one of my ajax call,
i followed the following as mentioned in the documentation, i am trying to ignore a url 'getTip' but it still trigger the pace animation,
ajax: {
trackMethods: ['GET', 'POST'],
trackWebSockets: false,
ignoreURLs: ['arterySignalR', 'browserLink', 'getTip']
}
or how can can i use the Pace.ignore in the following call
$( "a[name^='qtipname']" ).each(function(){ var $this = $(this); var id = $this.attr('rel'); $this.qtip({ content:{ text: 'Loading...', ajax:{ url: urlTip, type: 'GET', loading: false, data: {"objectID": id} } }, show: 'mouseover', // Show it on mouseover hide: { delay: 200, fixed: true // We'll let the user interact with it }, style: { classes: 'ui-tooltip-light ui-tooltip-shadow', width: 290 } });
In pace.js put this around line 212, right after the line where Pace.options
is initialized by extending the default options:
console.log(options);
When I did this, I saw keys for "ignoreURLS" and "ignoreURLs". I found in my code where I had used the wrong case & fixed it. Your capitalization looks correct, but have you tried to debug like this?
For anyone that steps into this, after looking through the pace.js, found out ignoreURLs was moved into ajax object, so ignore urls for me are working like this
window.paceOptions={
...
ajax: {
trackWebSockets: true,
ignoreURLs: ["ignore_pace"]
}
};