modules.js

An XHR JavaScript module loader

Provides a module, modules.js, with the following features:

  • module loading
  • singleton modules (module object loaded and executed only the first time it’s required).
  • module-relative module URL references

A module is a JavaScript file. modules.js uses an XHR (HTTP request) to get the file’s text, the eval function to run the script, and with blocks to manage the scope chain in the script.

App submitted Sat 21 Jun '08
Tags script

Related apps


Comments