I see no way to rank scripts in order of when they should be queued in relation to each other.
Google tag manager needs to be loaded prior to calling any other scripts that track conversions. I have that code block on all pages.
I track a specific page as a conversion in GA. That specific page has a block that triggers that conversion tracking.
If the conversion script is called before the GTAG script is loaded then the conversion won’t register.
There should be either a simple rank value attributed to each code block or a way to relate blocks with other blocks and then a required load order.