php page loader script

Solutions on MaxInterview for php page loader script by the best coders in the world

showing results for - "php page loader script"
Giulio
14 Apr 2019
1    
2$('body').append('<div style="" id="loadingDiv"><div class="loader">Loading...</div></div>');
3$(window).on('load', function(){
4  setTimeout(removeLoader, 2000); //wait for page load PLUS two seconds.
5});
6function removeLoader(){
7    $( "#loadingDiv" ).fadeOut(500, function() {
8      // fadeOut complete. Remove the loading div
9      $( "#loadingDiv" ).remove(); //makes page more lightweight 
10  });  
11}
Angelo
21 Jul 2018
1$('body').append('<div style="" id="loadingDiv"><div class="loader">Loading...</div></div>');
2$(window).on('load', function(){
3  setTimeout(removeLoader, 2000); //wait for page load PLUS two seconds.
4});
5function removeLoader(){
6    $( "#loadingDiv" ).fadeOut(500, function() {
7      // fadeOut complete. Remove the loading div
8      $( "#loadingDiv" ).remove(); //makes page more lightweight 
9  });  
10}
similar questions
queries leading to this page
php page loader script