following code waits till dom ready
jQuery(document).ready(function(){
what do i have to write to simple let the execution of the jquery fu
Read about setTimeOut(). http://www.w3schools.com/jsref/met_win_settimeout.asp
Wrap your existing function with a call to setTimeout
, ie, replace your current:
jQuery(document).ready(function() {
....
});
with
jQuery(document).ready(function() {
setTimeout(function() {
....
}, 2000);
});
You can use
$(window).load(function(){});
instead of
$(document).ready(function(){});
I took reference from jquery forum
By using window.setTimeout.