• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

129
Vistas
JQuery wait x seconds after document ready

following code waits till dom ready

jQuery(document).ready(function(){

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.

THX

about 3 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

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);
});
about 3 years ago · Santiago Trujillo Denunciar

0

You can use

$(window).load(function(){}); 

instead of

$(document).ready(function(){});

I took reference from jquery forum

about 3 years ago · Santiago Trujillo Denunciar

0

By using window.setTimeout.

about 3 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda