mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-24 16:02:18 +00:00
don't block on js resources
This commit is contained in:
parent
a2c7211b67
commit
d595e67de7
4 changed files with 5 additions and 5 deletions
|
@ -54,7 +54,7 @@
|
||||||
{{ with .Site.Params.omgUser }}
|
{{ with .Site.Params.omgUser }}
|
||||||
<hr>
|
<hr>
|
||||||
<h3>status.lol</h3>
|
<h3>status.lol</h3>
|
||||||
<script src="https://status.lol/{{ . }}.js?time&link&fluent&pretty"></script>
|
<script src="https://status.lol/{{ . }}.js?time&link&fluent&pretty" defer></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Site.Params.musicThreadId }}
|
{{ with .Site.Params.musicThreadId }}
|
||||||
<hr>
|
<hr>
|
||||||
|
|
|
@ -13,5 +13,5 @@
|
||||||
<!-- Code Copy button via https://digitaldrummerj.me/hugo-add-copy-code-snippet-button/ -->
|
<!-- Code Copy button via https://digitaldrummerj.me/hugo-add-copy-code-snippet-button/ -->
|
||||||
{{ if (findRE "<pre" .Content 1) }}
|
{{ if (findRE "<pre" .Content 1) }}
|
||||||
{{ $jsCopy := resources.Get "js/code-copy-button.js" | minify }}
|
{{ $jsCopy := resources.Get "js/code-copy-button.js" | minify }}
|
||||||
<script src="{{ $jsCopy.RelPermalink }}"></script>
|
<script src="{{ $jsCopy.RelPermalink }}" async></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
{{ if eq .Site.Params.analytics true }}
|
{{ if eq .Site.Params.analytics true }}
|
||||||
<!-- cabin analytics -->
|
<!-- cabin analytics -->
|
||||||
<script async defer src="https://cabin.runtimeterror.dev/hello.js"></script>
|
<script async src="https://cabin.runtimeterror.dev/hello.js"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- syntax highlighting -->
|
<!-- syntax highlighting -->
|
||||||
|
|
|
@ -12,6 +12,6 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{{ $jsLunr := resources.Get "js/lunr.js" | minify }}
|
{{ $jsLunr := resources.Get "js/lunr.js" | minify }}
|
||||||
<script src="{{ $jsLunr.RelPermalink }}"></script>
|
<script src="{{ $jsLunr.RelPermalink }}" async></script>
|
||||||
{{ $jsSearch := resources.Get "js/search.js" | minify }}
|
{{ $jsSearch := resources.Get "js/search.js" | minify }}
|
||||||
<script src="{{ $jsSearch.RelPermalink }}"></script>
|
<script src="{{ $jsSearch.RelPermalink }}" async></script>
|
Loading…
Reference in a new issue