Describe the bug
Loading the homepage for the first (and sometimes subsequent) time(s) leads to a 404 studio not found error.
To Reproduce
Steps to reproduce the behavior:
Open the site after clearing the browser cache. If you look at the embed, it displays the 404 error.
Expected behavior
The embed should show the current featured studio
Additional context
This is very high impact, as anyone who accesses the site will see the 404 error, and anyone who embeds using the featured shortcut will also see a 404 error.
An initial look into the background of this bug shows that the function display() is running (and finishing) before the if loop before it can find the correct studio embed. The if loop should be incorporated into the function so that it runs each time the function is called.
When this is fixed, the setTimeout can be reduced/removed, as the main reason for adding that was a temporary fix to slow the speed of the display function in order to allow the embed to load properly. That temp fix has stopped, hence the need for a permanent fix.