Zaraz scripts are running simultaneously?

I have a couple of scripts hosted being injected (script src…) by Zaraz on the pageview trigger followed by an onload script to execute one of the script functions which is also injected by Zaraz on the pageview trigger.

It seems, despite the order in Zaraz, that the on page load script is executed before the function is available.

Is there any way modify Zaraz or create a trigger to load the first script before proceeding?

There’s currently no way to choose the order of scripts. The best way to solve the problem you’re facing would be do create a new Custom HTML action where a script tag containing both the function and the code calling it is injected.