Instantly share code, notes, and snippets.

Embed
What would you like to do?
Making Pace show for all ajax requests
// define options for Pace - ajax progress showing library
paceOptions = {
restartOnRequestAfter: 50, // make it work for short AJAX requests only (ajax requests taking longer than 50ms will trigger it)
ajax: {
trackMethods: [ 'GET', 'POST', 'DELETE', 'PUT', 'PATCH' ]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment