Question

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

Thanks in advance.

Was it helpful?

Solution

Use JQuery. Please.

    $("#loading").ajaxStart(function() {
        $(this).show();
    });
    $("#loading").ajaxStop(function() {
        $(this).addClass('ohmy').hide('slow');
    });
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top