Hallo,
I would like to improve the page load of my wiki.
The plugin mathjax is using a third party library javascript that render the math expression
https://www.dokuwiki.org/plugin:mathjax
Ie there is a action plugin that is triggerd at the hook TPL_METAHEADER_OUTPUT and add the following:
<script src='
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML' async></script>
There is also a syntax plugin that takes care of all math expression
<math>x^2</math>
I would like to add the javascript library only if there is a math expression.
I actually have tried with a boolean constant class but has the same class object is used between test case, I got a false positive.
Ie the test works in isolation but not in the test serie.
Does dokuwiki have a mechanism to take care of this kind of dependency between a syntax and a action plugin ?
Thanks
Nico