Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ajax indicator before complete loading

Tags:

ajax

loading

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

Thanks in advance.

like image 609
bobighorus Avatar asked May 16 '26 11:05

bobighorus


1 Answers

Use JQuery. Please.

    $("#loading").ajaxStart(function() {
        $(this).show();
    });
    $("#loading").ajaxStop(function() {
        $(this).addClass('ohmy').hide('slow');
    });
like image 89
BenB Avatar answered May 19 '26 03:05

BenB



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!