### Describe the problem It looks like mathjax doesn't get loaded by sphinx on page that contains nodes that reference math but don't explicitly include math on that page For example: ```rst .. solution:: exercise-1 :label: solution-1 This is a solution to exercise 1 ``` references ```rst .. exercise:: :math:`n!` factorial :label: exercise-1 Exercise 1 about :math:`n!` factorial ``` But will result in:  but if you add a math role anywhere on that page it will be correctly rendered. ### Link to your repository or website _No response_ ### Steps to reproduce 1. Have a page with solution nodes only with references to `exercise` nodes that contain math in the titles ### The version of Python you're using _No response_ ### Your operating system _No response_ ### Versions of your packages _No response_ ### Additional context I suspect this relates to loading mathjax on a per page basis https://github.com/sphinx-doc/sphinx/issues/9686