1

Possible Duplicate:
How to show loading spinner in jQuery?

In the below screenshot till the required content is loaded it displays an image that represents loading. I saw this even while loading web pages first it displays the page loading image and at once the loading image turns to page. How this can be implemented? enter image description here

Community
  • 1
  • 1
Mal
  • 533
  • 1
  • 12
  • 27

1 Answers1

0
$.ajaxStart(function(){
    $("#loader_with_image").show();
});

$.ajaxComplete(function(){
    $("#loader_with_image").hide();
});
genesis
  • 50,477
  • 20
  • 96
  • 125