Source

bootstrap /

Filename Size Date modified Message
tools
23 B
45 B
895 B
1.3 KB
4.6 KB
1.2 KB
787 B
1.2 KB
833 B
284 B
34 B
3.5 KB
0 B
0 B
Bootstrap is a small library for dynamically loading JavaScript files.
It's primary use case is for using in your JS code to load JS files only when they are used.
syntax:

bootstrap("script file name.js","id you want the script element to have");

or

$b("script file name.js","id you want the script element to have");

You can also not pass in an id and Bootstrap will assign a random one to your script tag

alternatively, you can pass in a call back function.
$b("script file name.js", "id of your element", callBackFunction);

The ID element is also optional if you are not passing in a call back.

If you'd like to specify multiple files, you can either pass in an array containing
the names/urls of the scripts you would like to load or you can pass in a config object
using the following format:
{
    "{id for the script tag}" : "{name or url for the script}"
}