Is there a way to dynamically inject a
<script src="https://remote.com/"></script>
element into my page, wait for it to run, and then access the functions it defines?
Just to note, the script will handle credit card processing in certain cases, so I prefer not to include it unless necessary. I aim to include it swiftly when the user initiates a change-credit-card-options dialog, and then transmit the new credit card details to it.
Additional information: I do not possess the remote script.