https://github.com/thinkphp/inject
Yet another asynchronous script loader library.
https://github.com/thinkphp/inject
Last synced: 3 months ago
JSON representation
Yet another asynchronous script loader library.
- Host: GitHub
- URL: https://github.com/thinkphp/inject
- Owner: thinkphp
- Created: 2012-05-28T15:49:56.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-05-29T09:08:58.000Z (over 13 years ago)
- Last Synced: 2024-04-14T14:54:25.918Z (almost 2 years ago)
- Language: JavaScript
- Homepage: http://thinkphp.ro/apps/js-hacks/inject/demo/weather/
- Size: 180 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Inject - Yet Another JS Asynchronous Script Loader
--------------------------------------------------
This library allows you to load script resources on-demand from any URL and not block other resources from loading(like CSS and images).
How to use
==========
inject('moo.js').then('foo.js').then('bar.js').ready(function(){
//moo.js & foo.js & bar.js ready
//do something
})
or you can without dot js
inject('moo').then('foo').then('bar').ready(function(){
//moo.js & foo.js & bar.js ready
//do something
})
Browser support
---------------
* IE6+
* Chrome
* Firefox 3+
* Opera
* Safari 4+
## License ##
Inject is an open-source project released under the MIT license.