cortex-js / cortexjs.io

Source for the cortexjs.io website
http://cortexjs.io/
51 stars 19 forks source link

The text box on the demo page doesn't show LaTeX #15

Closed andromeda951 closed 2 years ago

andromeda951 commented 2 years ago

After the April 05, 2022 update, on firefox version 99.0.1 (64-bit) macOS, the text box on the demo page doesn't show LaTeX.

arnog commented 2 years ago

Do you mean this page: https://cortexjs.io/mathlive/demo/ ?

I've tried it, but it seems to work for me. Could you include a screenshot of what you are seeing? Have you tried with another browser, and is it different?

gunnarmein-ts commented 2 years ago

On a plane right now, slow internet. Demo page. The LaTEX takes 5 second to appear after the formula appears on Chrome. On Safari, significantly longer. Perhaps that is what the OP is observing.

arnog commented 2 years ago

Oh, I see. The library is somehow loaded 6 times. That could contribute to the problem. I'll look into it.

arnog commented 2 years ago

OK, when loading the fonts (and sounds), the origin of the library needs to be resolved to determine the relative location of those files. This was done with a http GET for each font, while it only needs to be done once, and with a HEAD, to avoid having to re-download the entire library.

arnog commented 2 years ago

Fixed in MathLive 3fb439447ff15a6f606d7d4c5168dc90ab8dcea1

arnog commented 2 years ago

Deployed to cortextjs.io