I have a function preload.
I want to make it so that the image on my page does nothing when you click on it UNTIL the preloading has completed.
- page loads
- preloading begins – clicking on the main image does nothing
- preloading completes – clicking on the main image will now call the intended function
How can this be realized?
Thanks
Use the
.load()event handler