Move the p5 script includes to the bottom of the <body>
This commit is contained in:
parent
476bac98e6
commit
2e2afbdd44
2 changed files with 9 additions and 7 deletions
|
@ -9,6 +9,15 @@
|
|||
</main>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
|
||||
{{ if and .IsPage .Params.is_p5js_sketch }}
|
||||
<script src="{{ `scripts/p5-1.4.1.min.js` | absURL }}"></script>
|
||||
<script src="{{ `scripts/sketch-utils.js` | absURL }}"></script>"
|
||||
{{ with .Resources.GetMatch "sketch.js" }}
|
||||
<script src="{{ .RelPermalink }}"></script>"
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<script>
|
||||
const bodyClasses = document.body.classList;
|
||||
const systemDarkModeMatch = window.matchMedia('(prefers-color-scheme: dark)');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue