Registering a StartupHook

 If you want to modify code that is loaded as an extension, you can use a StartupHook to synchronize your code with the loading of the extnsion. For example, we can modify the definition of the \iiiint macro, which is defined in the AMSmath extension, as follows:   MathJax provides many signals about what it is doing that you can hook onto in this way.