Reputation: 1152
How can I display an ajax indicator before all the images within a website layout were loaded?
Thanks in advance.
Upvotes: 3
Views: 578
Reputation: 10620
Use JQuery. Please.
$("#loading").ajaxStart(function() {
$(this).show();
});
$("#loading").ajaxStop(function() {
$(this).addClass('ohmy').hide('slow');
});
Upvotes: 1