asinkxcoswt
asinkxcoswt

Reputation: 2544

Mathjax does not render on Chrome after deployment to Google App Engine

I am creating a website on Google App Engine and have a problem that Mathjax dose not work on Chrome.

It has no problem when testing the website on my local machines, but after I publish to GAE, Mathjax stop working only for Chrome.

Here is the website

I put Mathjax CDN link and configuration at the bottom of body tag, it looks like

<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js" type="text/javascript">
    MathJax.Hub.Config({
        extensions: ["tex2jax.js","TeX/AmsMath.js","TeX/AMSsymbols.js"],
        jax: ["input/TeX","output/HTML-CSS"],
        tex2jax: {
            inlineMath: [ ['$','$'], ["\\(","\\)"] ],
            displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
            processEscapes: true,
        },
        "HTML-CSS": { availableFonts: ["TeX"] }
    });
</script>
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML""></script>
<script src="/static/js/jquery.js"></script>
<script src="/static/js/childsplayexp.js"></script>


</body>

I have tried moving it to different places but nothing has changed. I have no clue now.

Sorry for not informative, but I don't know myself what has happened at all, please feel free to post a guess, it sure is valuable for me.

Upvotes: 2

Views: 2048

Answers (1)

Peter Krautzberger
Peter Krautzberger

Reputation: 5285

There are two problems in your page.

UPDATE this has changed in 2014. SSL now works on cdn.mathjax.org and the rackcdn address has been retired.

UPDATE (2017). The copy at cdn.mathjax.org will be retired. Check mathjax.org/cdn-shutting-down for migration tips.

  • A lesser problem is that script for the MathJax linline configuration block has the wrong type -- it should be text/x-mathjax-config. Again, see the documentation for more detail.

Upvotes: 3

Related Questions