If you use
Loading jsMath in the Document HEAD
easy/load.jsto load jsMath, you can place the SCRIPT tag that loads it anywhere in your document. That is the easiest way to include jsMath in your web page.
The usual way to load jsMath used to be with a
SCRIPTtag within the
BODYof the document; loading jsMath in the document
HEADused to require additional effort, but as of version 3.0, this is no longer the case. You can now load jsMath in the
jsMath.ProcessBeforeShowing()in the document's
onLoadhandler without ever having any jsMath calls within the
BODYof the document. The old
jsMath.Setup.Body()call is no longer needed.
The call to
jsMath.Setup.Body()is made automatically if
jsMath.jsis loaded in the body of the document, and if not, the call is made when
jsMath.ProcessBeforeShowing()is invoked. This routine is where the styles are set up, the jsMath button appears, the fonts are checked, the missing-font message is displayed, the fallback code is loaded, and so on. Having this performed at the top of the document is a help to your readers, as it will get the file loads started early, and will prevent the style changes from causing the page to change once they have seen it, which can be confusing. So if you load jsMath in the document
HEAD, it is still a good idea to put a call to
jsMath.Setup.Body()somewhere near the top of the document
BODYrather than waiting for
jsMath.Process()to do it at the bottom of the page.