Utility Functions

loadScript(url: string) => Promise

When enabled, this function is exposed as window._sdiToolkit.reactor.loadScript

//example loading jQuery from CDN
var url = 'http://code.jquery.com/jquery-3.1.1.js';
_sdiToolkit.reactor.loadScript(url).then(function() {
// Do something ...
})

Adobe Docs for @adobe/reactor-load-script

queryString: Object<string, Function>

When enabled, this function is exposed as window._sdiToolkit.reactor.queryString

var parsed = _sdiToolkit.reactor.queryString.parse(location.search);
console.log(parsed.campaign);
var obj = {
campaign: 'Black Friday'
};
var stringified = queryString.stringify(obj);

Adobe Docs for @adobe/reactor-query-string