Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
JQuery espera x segundos después de que el documento esté listo

siguiente código espera hasta que dom esté listo

 jQuery(document).ready(function(){

¿Qué tengo que escribir para dejar que la ejecución de la función jquery espere 2 segundos después de que el documento esté listo?

Necesito esto para reducir un conflicto entre varias instancias de un complemento.

Gracias

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Envuelva su función existente con una llamada a setTimeout , es decir, reemplace su actual:

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

con

 jQuery(document).ready(function() { setTimeout(function() { .... }, 2000); });
over 4 years ago · Santiago Trujillo Report

0

Puedes usar

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

en vez de

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

Tomé referencia del foro jquery

over 4 years ago · Santiago Trujillo Report

0

Mediante el uso de window.setTimeout .

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!