bobighorus
bobighorus

Reputation: 1152

ajax indicator before complete loading

How can I display an ajax indicator before all the images within a website layout were loaded?

Thanks in advance.

Upvotes: 3

Views: 578

Answers (1)

BenB
BenB

Reputation: 10620

Use JQuery. Please.

    $("#loading").ajaxStart(function() {
        $(this).show();
    });
    $("#loading").ajaxStop(function() {
        $(this).addClass('ohmy').hide('slow');
    });

Upvotes: 1

Related Questions