Skip to content

Instantly share code, notes, and snippets.

@laychopy
Created June 26, 2013 16:01
Show Gist options
  • Save laychopy/5868696 to your computer and use it in GitHub Desktop.
Save laychopy/5868696 to your computer and use it in GitHub Desktop.
Show loading message when ajax request start and then hide it when finish.
$('#loading_indicator')
.ajaxStart(function() { $(this).show(); })
.ajaxStop(function() { $(this).hide(); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment