In case someone else comes across this thread. I had tried various ways to load the scripts, for instance
$.ajax({
url: URL,
dataType: "script",
async: false,
success: console.log("Success!")
});
However, this seemed to destroy the F&O HTML framework for reasons unknown.
Ended up with this code when the F&O HTML framework gets initialized, which seems to work better.
var s = document.createElement("script");
s.type = "text/javascript";
s.src = $dyn.value(data.URL);
$("head").append(s);
I do wish we had some way of knowing when the system finished loading, and we could trigger something based on that.