Using script tag with async
doraneko94 opened this issue · comments
I want to use mathjax with trunk, so I wrote
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
in index.html
, but it seems not work.
I think the problem is that the script after trunk build
is changing like
<script id="MathJax-script" async="" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
.
How can I make script
tag with such an async
attribute work?
Hm, that seems indeed like a bug in trunk. I fear the only way would be fixing this properly in trunk.
I am wondering if that causes any problems? It seems like trunk internally generates it correctly, but when inserting into the DOM, it gets turned into async=""
at some point.
@doraneko94 is that causing any problems?