click - jQuery prevent an image from being clicked on until other function is completed -
i have function preload.
i want make image on page nothing when click on until preloading has completed.
- page loads
- preloading begins - clicking on main image nothing
- preloading completes - clicking on main image call intended function
how can realized?
thanks
use .load()
event handler
$('#myimage').load(function() { // handler .load() called. });
Comments
Post a Comment