use defer instead of async
authorYihui Xie <xie@yihui.name>
Fri, 12 Nov 2021 05:14:09 +0000 (23:14 -0600)
committerYihui Xie <xie@yihui.name>
Fri, 12 Nov 2021 05:14:09 +0000 (23:14 -0600)
exampleSite/layouts/partials/foot_custom.html

index 3389d46df2157742727d778a6ab7a057032e62fa..4f9aaa214a3701d4215fa4eee14805f5e2ede7b3 100644 (file)
@@ -1,4 +1,4 @@
-<script src="//yihui.org/js/math-code.js"></script>
-<script async src="//mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
+<script defer src="//yihui.org/js/math-code.js"></script>
+<script defer src="//mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
 
-<script async src="//yihui.org/js/center-img.js"></script>
+<script defer src="//yihui.org/js/center-img.js"></script>