Skip to content

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

License

Notifications You must be signed in to change notification settings

briancray/tinyamd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published