Horje
how to add preloader in html page Code Example
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'});
})
preload html
<head>
  <meta charset="utf-8">
  <title>JS and CSS preload example</title>

  <link rel="preload" href="style.css" as="style">
  <link rel="preload" href="main.js" as="script">

  <link rel="stylesheet" href="style.css">
</head>

<body>
  <h1>bouncing balls</h1>
  <canvas></canvas>

  <script src="main.js" defer></script>
</body>




Html

Related
iframe youtube playlist not working html Code Example iframe youtube playlist not working html Code Example
bootstrap 4 basic structure Code Example bootstrap 4 basic structure Code Example
bootstrap starter code Code Example bootstrap starter code Code Example
boostrap Code Example boostrap Code Example
html putting content in input Code Example html putting content in input Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7