gboffi
gboffi

Reputation: 25023

mathjax is not rendered when my page is on Dropbox

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?

Upvotes: 0

Views: 115

Answers (1)

Peter Krautzberger
Peter Krautzberger

Reputation: 5285

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.)

Upvotes: 2

Related Questions