Ajax indicator before fully loaded

How can I show ajax indicator before loading all images in website layout?

Thanks in advance.

+3
source share
1 answer

Use jQuery. You are welcome.

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

Source: https://habr.com/ru/post/1722581/


All Articles