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

https://github.com/nagilum/javascriptbootstrapper

Loads .js files async and executes queued code when all tagged files are loaded.
https://github.com/nagilum/javascriptbootstrapper

Last synced: 25 days ago
JSON representation

Loads .js files async and executes queued code when all tagged files are loaded.

Awesome Lists containing this project

README

          

# Javascript Async Bootstrapper

Loads .js files async and executes queued code when all tagged files are loaded.

Usage:

```html

```

It is very important that ID of the script tag is called "bootstrapper".

This will load file1, 2, and 3 async, and if you use the ready function to queue up code, it will only be executed after all files are loaded.

Example:
```html


Bootstrapper Test




BEFORE LOAD


// This document ready wrapper will queue the code until jQuery is loaded, then execute it.
queueCode(function () {
$('div#victory').test('AFTER ASYNC LOAD');
});

```