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.

  1. page loads
  2. preloading begins - clicking on main image nothing
  3. preloading completes - clicking on main image call intended function

how can realized?

thanks

use .load() event handler

$('#myimage').load(function() {   // handler .load() called. }); 

Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -