Answers for "jquery loading page"

1

window load jquery

$(window).on('load', function() {
    console.log('All assets are loaded')
})
Posted by: Guest on September-10-2021
3

jquery ajax add loading

var $loading = $('#loadingDiv').hide();
$(document)
  .ajaxStart(function () {
    $loading.show();
  })
  .ajaxStop(function () {
    $loading.hide();
  });
Posted by: Guest on December-01-2020

Browse Popular Code Answers by Language