Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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>
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #preload #html
ADD COMMENT
Topic
Name
4+1 =