anyoptimization / pymoo-doc

Automatically created documentation of pymoo
Apache License 2.0
4 stars 3 forks source link

Potential math rendering errors in `pymoo.org` #1

Open rohitdwivedula opened 2 years ago

rohitdwivedula commented 2 years ago

There appear to be some errors in the math rendering on pymoo.org:

image

As soon as the page loads, the math shows up fine - for around ~15-30 seconds. However, after 30 seconds or so, the math ends up as shown in the above picture: [Math Processing Error]. I usually would assume that this was something wrong with my browser, but this happened on three different browsers on two different devices (Firefox mobile, Firefox Desktop, and Edge Desktop), both in regular mode and incognito/private browsing - so that probably rules out something being wrong with my browser specifically.

On going through the Javascript console on the browser, it looks like there are some JS libraries missing:

GET https://pymoo.org/_static/fonts/HTML-CSS/TeX/woff/MathJax_Main-Regular.woff?V=2.7.3 net::ERR_ABORTED 404 (Not Found)
/_static/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff?V=2.7.3:1 GET https://pymoo.org/_static/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff?V=2.7.3 net::ERR_ABORTED 404 (Not Found)
/_static/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff?V=2.7.3:1 GET https://pymoo.org/_static/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff?V=2.7.3 net::ERR_ABORTED 404 (Not Found)
/_static/fonts/HTML-CSS/TeX/otf/MathJax_Main-Regular.otf?V=2.7.3:1 GET https://pymoo.org/_static/fonts/HTML-CSS/TeX/otf/MathJax_Main-Regular.otf?V=2.7.3 net::ERR_ABORTED 404 (Not Found)
/_static/fonts/HTML-CSS/TeX/otf/MathJax_Math-Italic.otf?V=2.7.3:1 GET https://pymoo.org/_static/fonts/HTML-CSS/TeX/otf/MathJax_Math-Italic.otf?V=2.7.3 net::ERR_ABORTED 404 (Not Found)
/_static/fonts/HTML-CSS/TeX/otf/MathJax_Size1-Regular.otf?V=2.7.3:1 GET https://pymoo.org/_static/fonts/HTML-CSS/TeX/otf/MathJax_Size1-Regular.otf?V=2.7.3 net::ERR_ABORTED 404 (Not Found)

followed by this error:

Uncaught TypeError: Cannot read properties of undefined (reading 'img')
    at GETWIDTHS (imageFonts.js?V=2.7.3:184)
    at Function.execute (MathJax.js?config=TeX-AMS-MML_HTMLorMML-full.js:243)
    at cb (MathJax.js?config=TeX-AMS-MML_HTMLorMML-full.js:225)
    at Object.Process (MathJax.js?config=TeX-AMS-MML_HTMLorMML-full.js:495)
    at Object.call (MathJax.js?config=TeX-AMS-MML_HTMLorMML-full.js:508)
    at Function.WAITEXECUTE (MathJax.js?config=TeX-AMS-MML_HTMLorMML-full.js:348)
    at cb (MathJax.js?config=TeX-AMS-MML_HTMLorMML-full.js:225)
    at Object.Execute (MathJax.js?config=TeX-AMS-MML_HTMLorMML-full.js:426)
    at Object.loadComplete (MathJax.js?config=TeX-AMS-MML_HTMLorMML-full.js:968)
    at Object.loadTimeout (MathJax.js?config=TeX-AMS-MML_HTMLorMML-full.js:979)

after which the math error shows up. Just thought I'd let you know - if this doesn't seem like a problem others are facing, please close this issue - thanks!

blankjul commented 2 years ago

Thanks for letting me know. I can not reproduce the error but have updated the pymoo.org page.

Can you please check again? (do not forget to delete the cache)

rohitdwivedula commented 2 years ago

Can you please check again? (do not forget to delete the cache)

Hi, the 404s and the subsequent errors don't seem to be appearing right now.

blankjul commented 2 years ago

I have had to reupload the files. Please check again.