I have a cakephp site that I need to use MathJax with. I use the standard method of loading css and javascript files, but MathJax needs to load as both javascript and a text file as shown here:
The javascript is loaded as:
echo $this->Html->script('MathJax');
<script type="text/x-mathjax-config">MathJax.Hub.Config({ extensions: ["tex2jax.js"], jax: ["input/TeX","output/HTML-CSS"], });</script>
Is there an equivalent way to load this text file?