Move the p5 script includes to the bottom of the <body>

This commit is contained in:
Eryn Wells 2022-03-25 23:21:43 -07:00
parent 476bac98e6
commit 2e2afbdd44
2 changed files with 9 additions and 7 deletions

View file

@ -31,13 +31,6 @@
<script defer src="{{ `scripts/highlight.min.js` | absURL }}" onload="hljs.initHighlightingOnLoad();"></script>
{{ end }}
{{ if and .IsPage .Params.is_p5js_sketch }}
<script src="{{ `scripts/p5-1.4.1.min.js` | absURL }}"></script>
{{ with .Resources.GetMatch "sketch.js" }}
<script src="{{ .RelPermalink }}"></script>"
{{ end }}
{{ end }}
{{ range $.Scratch.Get "social-list" }}
<link rel="preload" as="image" href="{{ printf `%s.svg` . | absURL }}">
{{ end }}