0

I have some mathjax enhanced WWW pages on Dropbox (e.g., mathjax_test.html), that are rendered like this

enter image description here

while on localhost they are rendered like this

enter image description here

The code of the page is

<html>
  <script type="text/javascript"
    src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  <head>
    <title>Test of mathjax</title>
    <meta http-equiv="content-type" content="text/html;charset=latin-1"></>
  </head>
  <body>
      We analyze the common case in which the dynamic load can
      be expressed by a constant load vector \(\boldsymbol r\)
      modulated by an adimensional function of time,
      \(f(t)\) (e.g., the seismic excitation can be
      described in such terms).
  </body>
</html>

Is there something that can be done to have mathjax code rendered correctly when the page is fetched from Dropbox?

gboffi
  • 22,939
  • 8
  • 54
  • 85
  • Try changing http to https for src pointing to MathJax.js. since Dropbox enforces https the http call will be blocked for security reasons. – Peter Krautzberger May 20 '15 at 15:31
  • @PeterKrautzberger I would say that it's my browser that sources the javascript from cdn.mathjax.org,,, I would say so but it works! If you care to put your comment in an answer I'd be glad to upvote and accept your answer but thank you nevertheless! – gboffi May 20 '15 at 15:38
  • Glad to hear it works. – Peter Krautzberger May 22 '15 at 13:34

1 Answers1

2

The problem is that Dropbox only serves content over https but in your source MathJax.js is loaded via src="http://cdn.mathjax.org/....

Browsers block such http calls (see this SO post), hence MathJax is not loaded and accordingly can't render the page.

(You can open the JavaScript console in the developer tools of your browser to see an error message about this.)

Community
  • 1
  • 1
Peter Krautzberger
  • 5,145
  • 19
  • 31