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.
- Host: GitHub
- URL: https://github.com/nagilum/javascriptbootstrapper
- Owner: nagilum
- Created: 2014-12-18T13:14:03.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-18T15:35:26.000Z (about 11 years ago)
- Last Synced: 2025-01-16T13:48:05.101Z (12 months ago)
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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');
});
```