Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

133
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda