I just ran into the problem of using jQuery.delay () (v 1.4.2) method to try to defer the next .load () method.
Same:
$('myElement').delay(500).load('myPage.php');
It seems to just ignore .delay ().
I even thought about it:
setTimeout(function(){
$('myElement').load('myPage.php');
}, 500);
But it is not so elegant. Does anyone else come across this and find a better solution?
Thank.
source
share