Created
March 9, 2018 05:50
-
-
Save ashfame/cde19efed9e70ef5bb8778901ced9976 to your computer and use it in GitHub Desktop.
Making Pace show for all ajax requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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