Answers for "how to set preloader with image in html"

0

html preload images

<link rel="preload" as="image" href="important.png">
Posted by: Guest on June-12-2021
1

how to add preloader in html page

$(window).on('load', function() { // makes sure the whole site is loaded 
  $('#status').fadeOut(); // will first fade out the loading animation 
  $('#preloader').delay(350).fadeOut('slow'); // will fade out the white DIV that covers the website. 
  $('body').delay(350).css({'overflow':'visible'});
})
Posted by: Guest on March-06-2021

Browse Popular Code Answers by Language