Created
November 9, 2010 14:12
-
-
Save leonbarrett/669117 to your computer and use it in GitHub Desktop.
Simple function to show when ajax calls are started/stopped
This file contains hidden or 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
| $(document).ajaxStart(function() { | |
| //you can do anything here such as showing a loading graphic | |
| console.log('ajax started'); | |
| }); | |
| $(document).ajaxStop(function() { | |
| console.log('ajax stopped'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment