Add option to choose mathjax load method #9864
Labels
extensions:mathematics
The `sphinx.ext.imgmath`, `sphinx.ext.jsmath`, or `sphinx.ext.mathjax` extensions
markup
type:bug
Milestone
Is your feature request related to a problem? Please describe.
Plotly uses mathjax v2, so to render graphs using this package we have to make sphinx also use mathjax v2 with (see #9563):
The problem in Sphinx 4.3 is that now, as discussed in #9450, mathjax is loaded with the “defer” option instead of “async”, and this breaks plotly rendering.
Describe the solution you'd like
In the mathjax2_config dict, it would be nice to have an option "load_method" in which we would be able to choose "async" or "defer"
Additional context

Error that shows up in the console:
The text was updated successfully, but these errors were encountered: