Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

129
Vistas
Stencil JS globalscript is not completing before app loads

Need to initialize indexedDB before any component loads. Tried using the global script to do this but the global script default function does not complete before components load. For example if I set a timeout in the default function for 30 seconds the components still load and do not wait for the function to complete. Read documentation and states "The global script runs once BEFORE your library/app loads." This is not happening.

Need some suggestions on how to achieve my goal or possible reasons why global scripts is behaving as such. Tried setting up the global script both async and sync.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Was using setTimeout() to create a pause which is not correct. "setTimeout() is an asynchronous function, meaning that the timer function will not pause execution of other functions in the functions stack." Stencil globalscript is working as expected.

about 4 years ago · Juan Pablo Isaza 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 Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda