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

376
Views
Retraso del precargador de HTML (Elementor)

Necesito algo de ayuda. Entonces, esta página está usando un iframe, por esa razón el cambio de diseño acumulativo es bastante notable. Así que queríamos usar un precargador para que no puedas ver eso. Pero el código del precargador solo muestra el precargador durante unos 100 ms. Quería cambiar esto, así que agregué este código entre la etiqueta del script. Pero ahora el precargador no va a desaparecer en absoluto. Girando para siempre

Este es el código:

 jQuery(document).ready(function($) { $(window).load(function() { setTimeout(function() { $('#preloader').fadeOut('slow', function() {}); }, 200); // set the time here }); });
 .loader { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 9999; background: url('https://example.com/example.svg') 50% 50% no-repeat #aa9767; /* Change the #fff here to your background color of choice for the preloader fullscreen section */ } .elementor-editor-active .loader { display: none; }
 <script src="https://code.jquery.com/jquery-3.6.0.js"></script> <div class="loader"></div>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Dos cosas me parecen mal:

  1. Su selector parece incorrecto, supongo que está destinado a ser .loader

  2. El parámetro de función en document.ready no toma parámetros

     jQuery(document).ready(function() { $(window).load(function() { setTimeout(function() { $('.loader').fadeOut('slow'); }, 200); // set the time here }); });
about 4 years ago · Juan Pablo Isaza 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!