Javascript Dependency Manager
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at

 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations
 * under the License.
 * Contributor(s): 
 *   Jamon Terrell <>
 *   Petar Strinic <>

include.js - v0.3.1

Minimalist Async Module Definition/Dependency Management library for javascript with support for optional
dependencies (and error handling support to be added).

Why another AMD implementation?
  * Support for optional dependencies
  * Graceful loading failures (with support for error handling callbacks)
  * Small enough to include in your main .html file (1.5KB minified)

  * Fixed support for loading files not wrapped in a define statement
  * Making sure onError callback is actually a function before calling it
  * Making sure onError sends at least the dependency name 
  * Not adding .js to dependencies when .js is already in the filename

  * Implemented first pass of Error Callback support
  * Added sofea.include.version variable
  * Added alias to global method "require"
  * Added property "amd" to specify we implement the AMD spec (probably not 100% accurately at this point)

  * First public release (complete rewrite from old public code)

  * add documentation
  * Timeouts not yet implemented
  * Logging/Debug API not implemented
  * Configuration API not implemented (direct access to sofea.baseDir will be "removed" at some point)
  * Add preservation of existing require/define methods (a la jquery's overriding of $)
  * Need to further test deeply nested dependencies
  * Need to fully support "AMD" API, (optional params on define are currently missing, probably more (need tests)
  * Add support for suspend/resume (for compilation of scripts)
  * Add script compiler
  * Add "context" support (i.e. remove all instance level vars, allow aquiring a new instance)