Welcome to our community

Be a part of something great, join today!

[SOLVED] MathJax does not render any more

  • Thread starter
  • Admin
  • #1

Klaas van Aarsen

MHB Seeker
Staff member
Mar 5, 2012
8,714
When I load a page - any page - the formulas do not render any more.
Normal text is there.
The unformatted Latex does show up for a fraction of a second in gray.
Normally this is followed by a replacement by formatted Latex, but now the unformatted Latex just disappears.

It appears MathJax has broken somehow.
I checked with 2 different browsers (Chrome and Firefox) on Windows.
Clearing cache and cookies does not help.

However, I do still get formulas on my Android mobile device.
 

Theia

Well-known member
Mar 30, 2016
92
Seconded. I'm using Firefox on Xubuntu 16.04.3 LTS 64 bit.
 

skeeter

Well-known member
MHB Math Helper
Mar 1, 2012
644
test ...

$\displaystyle I = \int r^2 \, dm$

... shows up on my ipad ok. (Chrome)
 

Jameson

Administrator
Staff member
Jan 26, 2012
4,032

MarkFL

Administrator
Staff member
Feb 24, 2012
13,736
I am trying to investigate this issue, but the AdminCP keeps reloading every 5 seconds or so, preventing me from using it. :(

For what it's worth, everything is working correctly on my local dev site.
 

MarkFL

Administrator
Staff member
Feb 24, 2012
13,736
Jameson,

A search at vBcom for the issue I reported regarding the AdminCP suggests this could be a CloudFlare issue, specifically with Rocket Loader™. Can you switch this off?

Here is the post I found:

Admin Control Panel Refresh Issue - post #11
 

Greg Bernhardt

Administrator
Staff member
Feb 3, 2012
131
Blank for me too
 

lfdahl

Well-known member
Nov 26, 2013
719
Same here ...
 
  • Thread starter
  • Admin
  • #9

Klaas van Aarsen

MHB Seeker
Staff member
Mar 5, 2012
8,714
When I save this page locally, and load it from there, it fails to render as well.

When I change the line:
Code:
<script type="text/rocketscript" data-rocketsrc="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full"></script>
into:
Code:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full"></script>
the formula that skeeter posted renders correctly again.

So it seems there is something wrong with Cloudflare's rocketscript.
Can we disable it as MarkFL already suggested?
Or can we otherwise apply a quickfix as my change seems to suggest should be possible?
 

Jameson

Administrator
Staff member
Jan 26, 2012
4,032
Ok it should be working now. I found a setting in CloudFlare that attempts to speed up your site through javascript manipulation and it was moving the MathJax script somewhere incorrectly. Please let me know if it's working now.
 

Greg

Perseverance
Staff member
Feb 5, 2013
1,382
$$\LaTeX$$

Works for me...
 

MarkFL

Administrator
Staff member
Feb 24, 2012
13,736
Ok it should be working now. I found a setting in CloudFlare that attempts to speed up your site through javascript manipulation and it was moving the MathJax script somewhere incorrectly. Please let me know if it's working now.
Yes, MathJax seems to be working again, and the AdminCP is back to normal as well. Thanks for taking care of that! (Yes)