https://rawb.codeplex.com/SourceControl/latest#Rawb/Rawb/js/rawb.loader.js
Loader
The Rawb loader provides a convenient way of asynchronously loading scripts and HTML templates.
rawb.load(url, handler)
Asynchronously "get" the data from
url.
If there is a problem, report an error via an alert and abandon all further work.
Otherwise, run the
handler on the response.
After the
handler, run any queued
runAfterLoading continuations if there
are no outstanding loads in progress.
Parametersurl: stringRequired. Must not be an observable.
The URL to load.
handler: function (any)Required. Must not be an observable.
The action invoked on the XMLHttpRequest response.
rawb.loadAndAddHtml(url)
Asynchronously load HTML from the given URL and append it to the
document body (if the response consists of several HTML elements,
they are appended to the document body in order).
If there is a problem, report an error via an alert and abandon all further work.
Parametersurl: stringRequired. Must not be an observable.
The URL to load.
rawb.loadAndRunScript(url)
Asynchronously load Javascript from the given URL and run it
in the global scope using
eval.
If there is a problem, report an error via an alert and abandon all further work.
Parametersurl: stringRequired. Must not be an observable.
The URL to load.
rawb.runAfterLoading(continuation)
Add a function to be called once all outstanding loads have completed.
Continuations are called in the order they are added.
Continuations are run at most once.
If there are no outstanding loads, the continuation is run immediately.
If a loading error has occurred, no continuations will be run.
Parameterscontinuation: function ()Required. Must not be an observable.
The action to carry out once all outstanding loads have completed.