Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 911 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 911 Bytes

#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