Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandershushunov/script-loader
Project to investigate dynamic load java scripts
https://github.com/alexandershushunov/script-loader
Last synced: 23 days ago
JSON representation
Project to investigate dynamic load java scripts
- Host: GitHub
- URL: https://github.com/alexandershushunov/script-loader
- Owner: AlexanderShushunov
- Created: 2015-03-14T12:04:03.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-16T13:24:41.000Z (over 9 years ago)
- Last Synced: 2024-04-23T20:26:34.248Z (8 months ago)
- Language: JavaScript
- Size: 230 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# script-loader
It helps to load javascripts files from other. The main idea - make it like c++ "include" or java "import".
## How to get### CDN
```html```
Last release is [0.2](https://github.com/AlexanderShushunov/script-loader/releases/tag/0.2)
### Manual
Downloads are available on the [releases](https://github.com/AlexanderShushunov/script-loader/releases) page.
You have to include _js\script-loader\script-loader.js_ in your page. _js\script-loader\last-script.js_ has to be in the same directory.## How to use:
```javascript
ScriptLoader.load([
"http://yastatic.net/underscore/1.6.0/underscore.js"
"your_stuff.js",
"utils/super-util.js"
], function () {
// you can use here underscore, your_stuff, super-util
});
```## How to improve:
- last-script.js replace with script.onload = function() { ... };