Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
#tinyamd
# tinyamd

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

###Why use tinyamd?
### Why use tinyamd?

Because you like things that come in small packages.

###What does it support?
### What does it support?

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

###define()
### define()

* `define(name, [dependencies], object or function)`
* `define(name, object or function)`
* `define([dependencies], object or function)`
* `define(object or function)`

###require()
### require()
* `require([modules], callback)`
* `require(module, callback)`

###tinyamd.inject()
### tinyamd.inject()
* `inject(javascript file, callback)`

###tinyamd.config()
### tinyamd.config()
* `tinyamd.config({baseUrl: absolute path})`


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

###Why use a different AMD framework?
### Why use a different AMD framework?

Because you need [full config support](https://github.com/amdjs/amdjs-api/wiki/Common-Config)