WebAudio / web-audio-api

The Web Audio API v1.0, developed by the W3C Audio WG
https://webaudio.github.io/web-audio-api/
Other
1.04k stars 166 forks source link

MathJax warnings #2347

Open rtoy opened 3 years ago

rtoy commented 3 years ago

Describe the issue

There are warnings about loading MathJax in both Chrome and Firefix. I used https://www.w3.org/TR/webaudio/ and noticed the following console messages:

The resource https://www.w3.org/scripts/MathJax/2.7.5/jax/output/HTML-CSS/autoload/mtable.js?rev=2.7.5 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally. www.w3.org/:1 The resource https://www.w3.org/scripts/MathJax/2.7.5/jax/output/HTML-CSS/jax.js?rev=2.7.5 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally. www.w3.org/:1 The resource https://www.w3.org/scripts/MathJax/2.7.5/jax/element/mml/optable/BasicLatin.js?rev=2.7.5 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally. www.w3.org/:1 The resource https://www.w3.org/scripts/MathJax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js?rev=2.7.5 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally. www.w3.org/:1 The resource https://www.w3.org/scripts/MathJax/2.7.5/jax/output/HTML-CSS/fonts/STIX/fontdata.js?rev=2.7.5 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.

Firefox also mentioned:

“veryverythinmathspace”, “verythinmathspace”, “thinmathspace”, “mediummathspace”, “thickmathspace”, “verythickmathspace” and “veryverythickmathspace” are deprecated values for MathML lengths and will be removed at a future date.

Not sure how to resolve this, but it is probably a good idea to update from MathJax 2.7.x that we're using to MathJax 3.x. However 3.x has dropped support for some things, and I don't know if we're using those or not in the spec. Also don't know if updating will fix the Firefox warning.

Loading MathJax 3.x is much simpler and the API that we would use is also simpler. See the prototype v2 spec for an example.

rtoy commented 3 years ago

For the record, @svgeesus has let me know that Mathjax 3 is available and can be accessed with

<script src="/scripts/MathJax/3/es5/mml-chtml.js" id="MathJax-script" async>
</script>

This should work well for v1 too.

padenot commented 2 years ago

@svgeesus, https://www.w3.org/scripts/MathJax/3.1.4/es5/ is missing the "tex-*" syntax files, that are necessary to render the the Web Audio API spec. Tex support was present in 2.*. The necessary files are present upstream at https://github.com/mathjax/MathJax/tree/master/es5.

rtoy commented 2 years ago

Oh. @svgeesus also let me know a while ago that the version at w3.org is missing some parts of Mathjax 3.1.4 so it's not really usable for us. I think only mathml output (and input?) is supported which means it won't work with Chrome today.