Skip to content

Instantly share code, notes, and snippets.

@ashfame
Created March 9, 2018 05:50
Show Gist options
  • Save ashfame/cde19efed9e70ef5bb8778901ced9976 to your computer and use it in GitHub Desktop.
Save ashfame/cde19efed9e70ef5bb8778901ced9976 to your computer and use it in GitHub Desktop.
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