Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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() { ... };