mathjax.org demo broken on Firefox until I cleared site data
The demo sections wasn't working for me - but worked in incognito and on chrome. Refreshing the cache was not enough. After I cleared all site data, it worked again.
Maybe the older settings/cookies were the problem. Now that it works again, I obviously can no longer reproduce it.
I filed this issue just in case it's a more general problem of old cookies breaking an upgraded site.
OK, I will keep it in mind, but I can't reproduce, either. It's possible that the localStorage were a problem, but most of them are the same as they used to be, and they didn't cause me any problems. I'm sure I didn't have whatever the crucial setting was.
I suppose I could make the site clear the localStorage when you first arrive, and save the fact that you have already done so so it doesn't clear them again. Not sure if it is needed or not.
Thanks for taking a look, Davide. I tried to reproduce it locally without luck. I'm sure I messed around a lot with the settings on mathjax.org whenever I used it for quick tests so it's probably no surprise that I can't reconstruct it now. Here's hoping nobody else is as weird as me.
I think I have to correct my title. I'm just sometimes seeing this problem on Firefox - the rendering in the demo section is just not working. MathJax is loaded (at least I can query it via the console), it's just that nothing is happening. The render button can be activated once but then stays disabled (without any change in the rendering). No errors in the console.
I'm still not able to reproduce this. What OS are you working from (and what version)?
What OS are you working from (and what version)?
Ubuntu 25.04.
I'm still not able to reproduce this.
I think I can reproduce it: switching to SVG seems to be enough.Once I do that, refreshing the page breaks things. Clearing local storage fixes things. (It may still be a bit more random than that but in my current session this reproduces.)
OK, now I can reproduce. Thanks for the additional details. There is also a problem loading the font used for the in-line spacing (which is in a data:// URL) due to the CORS settings. That might be the problem, but I need to investigate further.
It also is not restricted to Firefox, as I can also reproduce in Safari. Haven't checked Chrome.
OK, I finally got to look into this more carefully, and figured it out. It is due to some fancy menu manipulation in the site's main.js file that is no longer needed in v4, and in fact causes v4 to go into a locked state (where one promise is waiting on another promise that is waiting on the first one), so the MathJax.startup.promise never resolves.
I have fixed the errant code on www.mathjax.org. You may need to clear the browser cache to remove the old copy of main.js before it works for you, but it is now working properly for me.