Skip to content

Commit

Permalink
refactor: add defer
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Sep 30, 2020
1 parent 4d17e68 commit a1de541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/mathjax.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ with $.Params.math }}
<script>
<script defer>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
Expand All @@ -9,5 +9,5 @@

{{ $js := resources.Get "theme/js/mathjax-v3.0.1-tex-mml-chtml.js" }}
{{ $secureJS := $js | resources.Fingerprint "sha512" }}
<script async type="text/javascript" id="MathJax-script" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
<script defer type="text/javascript" id="MathJax-script" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{ end }}

0 comments on commit a1de541

Please sign in to comment.