Author:Michael JasonSmith
Contact:Michael JasonSmith <>
Copyright:This document is licensed under a Creative Commons Attribution-Share Alike 4.0 International License by


This module contains a dynamic JavaScript module loader as a Zope Resource. It allows modules to be loaded from JavaScript, rather than having the dependencies written in HTML script elements. It is based on the ideas of others (see Acknowledgements below), but it mainly differs from prior work in that it keeps track of a global list of loaded scripts. The reason for this is the odd way that GroupServer is written.

The getScript function from jQuery performs a similar role to the loader presented here. Most people should use getScript as I am sure that it is better written and better maintained.


The Loader code was based on two jQuery loaders, from CSS Tricks and the blog by Joel Varty. The code to load multiple modules was based on the Async Script Loader with Callback from CSS Tricks.

Indices and tables