Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

#tinyamd

Teeny tiny AMD loader. About 1.2k minifed and gzipped.

###Why use tinyamd?

Because you like things that come in small packages.

###What does it support?

  • Named modules
  • Anonymous modules
  • baseUrl config
  • data-main="module" attribute for autoloading
  • Browsers: Chrome, Firefox, Safari, Opera, IE8+

###define()

  • define(name, [dependencies], object or function)
  • define(name, object or function)
  • define([dependencies], object or function)
  • define(object or function)

###require()

  • require([modules], callback)
  • require(module, callback)

###tinyamd.inject()

  • inject(javascript file, callback)

###tinyamd.config()

  • tinyamd.config({baseUrl: absolute path})

###Does it work? Heck yea. Try messing out with the files in /tests/

###Why use a different AMD framework?

Because you need full config support

About

Teeny tiny AMD implementation. About 1.2k minified and gzipped.

Resources

License

Releases

No releases published

Packages

No packages published