diff options
author | tristor <tristor@gmail.com> | 2021-02-07 21:10:25 +0300 |
---|---|---|
committer | tristor <tristor@gmail.com> | 2021-02-25 09:23:00 +0300 |
commit | c4b6260e50296eaf63f38d861cb3109a892732d8 (patch) | |
tree | 7fccc381671fcdc24d48178bcac89dd6be647233 | |
parent | 5a65eef312fa799bcd0a682e78768b72882f3f9b (diff) |
Make optional scripts in header load async
-rw-r--r-- | layouts/partials/head.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1ec2846..2202ff4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -38,7 +38,7 @@ <link href="https://fonts.googleapis.com/css2?family=Raleway&display=swap" rel="stylesheet" type="text/css"> <!-- MathJax --> - <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> + <script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <!-- RSS --> {{ if .OutputFormats.Get "RSS" }} @@ -48,9 +48,9 @@ {{ with .Site.Params.highlightjs }} <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/{{ . }}.min.css"> - <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"></script> + <script async src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"></script> {{ range $.Site.Params.highlightjs_extra_languages }} - <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/languages/{{ . }}.min.js"></script> + <script async src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/languages/{{ . }}.min.js"></script> {{ end }} <script>hljs.initHighlightingOnLoad();</script> {{ end }} |