Email Email - 1 year ago 115
jQuery Question

JQuery wait x seconds after document ready

following code waits till dom ready


what do i have to write to simple let the execution of the jquery function wait for 2 seconds after the document is ready?

i need this to narrow down a conflict between multiple instances of a plugin.


Answer Source

Wrap your existing function with a call to setTimeout, ie, replace your current:

jQuery(document).ready(function() {


jQuery(document).ready(function() {
    setTimeout(function() {
    }, 2000);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download