Skip to content

Instantly share code, notes, and snippets.

@mtigdemir
Last active August 29, 2015 14:16
Show Gist options
  • Save mtigdemir/a696f749cb3c5216f047 to your computer and use it in GitHub Desktop.
Save mtigdemir/a696f749cb3c5216f047 to your computer and use it in GitHub Desktop.
$(document).ajaxStart(function () {
$(".loading").show();
});
$(document).ajaxComplete(function () {
$(".loading").hide();
});
.loading {
display: none;
position: fixed;
top: 350px;
left: 50%;
margin-top: -96px;
margin-left: -96px;
background-color: #ccc;
opacity: .85;
border-radius: 25px;
width: 192px;
height: 192px;
z-index: 99999;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment