With this line removed from the code, the browser freezes, how come? How would I prevent that from ever happening?
Is the code written wrong where that is even able to happen in the first place?
apiIsReady = true; / Line Removed:
Try clicking on a play button on the image and the browser freezes.
apiIsReady = true; / Line Added: