move javascript link to head and defer

This commit is contained in:
Asif Bacchus 2020-04-10 09:23:53 -06:00
parent 735dab3aeb
commit 23873f5759

View File

@ -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>