https://griddle-reviews.blogspot.com/2024/07/forcing-one-javascript-function-to-wait.html
Forcing One Javascript Function To Wait To Run Until The First Has Finished