Info dialog OK button clickable before all resources have been downloaded

Hey!

I am hosting an experiment built with PsychoPy and exported as HTML on my own server.

The Problem:
The OK-button at the info dialog is already clickable before all resources have been downloaded. This is running into errors when not yet downloaded resources need to be shown. When testing it on Pavlovia this behaviour doesn’t exist.

My question:
How does Pavlovia disable the OK-button until all resources have been downloaded? If I understand it correctly, it must be something that Pavlovia adds to the code, or?

Thank you very much!