Script API

From RuntimeWiki

Jump to: navigation, search

Native APIs for managing the script resources on a page. E.g.

document.loadScript(“foo.js”, onSuccess, onFailure);
document.isLoaded(“foo.js”) // pass multiple scripts to check all

But also a standard way to load multiple scripts in parallel while still ensuring they are executed sequentially, with semantics for ‘load once’ – able to choose whether to execute a script again if it has already been loaded.

Personal tools