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