1
Fork 0

Load async scripts with defer

This commit is contained in:
Jake Howard 2018-12-01 17:27:59 +00:00
parent 829e6d395d
commit d9b53e3316
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,2 +1,2 @@
{{ $script := resources.Get . | minify | fingerprint }}
<script type="text/javascript" async src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
<script type="text/javascript" async defer src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>