Answers for "when table data is being loaded on the div, the loader is visible. after the data is loaded, the loader disappears and then the data is visible."

0

my loader is continously loading js

$('body').append('<div style="" id="loadingDiv"><div class="loader">Loading...</div></div>');
$(window).on('load', function(){
  setTimeout(removeLoader, 2000); //wait for page load PLUS two seconds.
});
function removeLoader(){
    $( "#loadingDiv" ).fadeOut(500, function() {
      // fadeOut complete. Remove the loading div
      $( "#loadingDiv" ).remove(); //makes page more lightweight 
  });  
}
Posted by: Guest on September-03-2020
0

display div while load

<script>
  $(window).load(function() {
    $('#loading').hide();
  });
</script>
Posted by: Guest on June-11-2020

Code answers related to "when table data is being loaded on the div, the loader is visible. after the data is loaded, the loader disappears and then the data is visible."

Browse Popular Code Answers by Language