move javascript link to head and defer
This commit is contained in:
parent
735dab3aeb
commit
23873f5759
14
index.html
14
index.html
@ -7,6 +7,12 @@
|
||||
<link rel="stylesheet"
|
||||
href="css/index.min.css"
|
||||
crossorigin="anonymous"/>
|
||||
<script
|
||||
src="js/ab-particles.min.js"
|
||||
crossorigin="anonymous"
|
||||
integrity="sha384-GyB27X5DbGI7EaqeCZWH6nlg1xEwP8P++83axSmabShThx8C0IqIDGkU6bf72iJj"
|
||||
defer>
|
||||
</script>
|
||||
</head>
|
||||
<body onload='particles(avoidMouse=false, speed=15)'>
|
||||
<div class="wrapper">
|
||||
@ -15,13 +21,5 @@
|
||||
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Repellat quod, ut aliquid doloremque impedit debitis similique dicta perferendis nam iusto consequuntur obcaecati nemo, perspiciatis nobis ipsum nostrum eos quasi est quidem reiciendis ducimus beatae repudiandae. Facere mollitia incidunt recusandae, voluptatem ullam placeat fugiat autem nihil. Hic quia accusantium nesciunt dicta.</p>
|
||||
</div>
|
||||
<canvas id="particles"></canvas>
|
||||
<!-- javascript -->
|
||||
<script
|
||||
src="js/ab-particles.min.js"
|
||||
crossorigin="anonymous"
|
||||
integrity="sha384-GyB27X5DbGI7EaqeCZWH6nlg1xEwP8P++83axSmabShThx8C0IqIDGkU6bf72iJj"
|
||||
async>
|
||||
</script>
|
||||
<!-- end javascript -->
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user