JavaScript

There are four ways to add JavaScript to your page:

  1. via per-page HEAD inserts,
  2. via textarea to hold script,
  3. via body of HTML,
  4. via HEAD /Script template.

It is recommended to include JS only on specific pages where it is absolutely required. This would lower the processing overhead of your superbook when it loads into the dom.

Restricting use of JS specifically to pages also helps in debugging by knowing exactly where to look.