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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -