mathjax / MathJax-a11y

MathJax Accessibility extensions
https://mathjax.github.io/MathJax-a11y/
Apache License 2.0
35 stars 19 forks source link

Mml Element Jax needs to be loaded synchronously #177

Closed dpvc closed 7 years ago

dpvc commented 7 years ago

This was sent to me privately by a user.

I'm working on and have been running into an issue with an error during the startup process. The error is refers to an 'mspace' property that is undefined ( see screenshot at http://i.imgur.com/iQfbNxE.png ).

I dug a little further and found that there appears to be a race condition in the order that files are loading in semantic-enrich.js and by making the changes in the gist below it fixes the issue for me.

https://gist.github.com/cbeihl/0b9562448a24001a67789f7dea35777e/revisions

I am using MathJax version 2.7-latest and MathJax-a11y version v1.1.0.

The solution in the gist does look like it should work.

dpvc commented 7 years ago

The issue177 branch includes the fix.

dpvc commented 7 years ago

==> Merged.