Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/we-lib/kid.js
Another Browser-side Module Loader.
https://github.com/we-lib/kid.js
Last synced: about 1 month ago
JSON representation
Another Browser-side Module Loader.
- Host: GitHub
- URL: https://github.com/we-lib/kid.js
- Owner: we-lib
- Created: 2014-03-29T03:15:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-27T15:53:09.000Z (over 10 years ago)
- Last Synced: 2024-10-12T22:16:18.270Z (3 months ago)
- Language: JavaScript
- Size: 176 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kid.js
Another Browser-side Module Loader.
## Kid.js vs Sea.js vs Require.js
| | Kid.js | Sea.js | Require.js |
| :---: | :---: | :---: | :---: |
| Style | \- | CMD | AMD |
| IE Comp | IE9+ | IE5.5+ | IE6+ |
| Symbol | `kid` | `seajs` | `require` |
| Size | <1K | 6.8K | 15.2K |
| Sandbox | No | Yes | Yes |
| Dep Repack | No | Yes | Yes |Kid.js implements only dynamically loading, no AMD/CMD.
## Usage
```js
kid.config({
base: 'scripts/',
alias: {
'underscore': ['underscore.js', 'underscore.string.js'],
'jquery': 'jquery/2.0.0/jquery.js',
'jquery.cookie': 'jquery.cookie/index.js'
}
});// they work asynchronously
kid.use(['jquery', 'jquery.cookie'], function () {
console.log($);
console.log($.cookie);
});kid.use(['underscore'], function () {
console.log(_);
console.log(_.string);
});
```Also see [examples/](examples/).