Prevent going forward until all resources have been manually loaded

Maybe something like this could help you out? Streamlining downloading resources - #2 by thomas_pronk

Note I used a similar approach in downloading a JS file in demo_eyetracking2: Thomas Pronk / demo_eye_tracking2 · GitLab