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

99
Visualizações
Trigger javascript to run in 15 minutes

How do I get a script to run in my browser with a timer of at least 15 minutes? Right now I'm running into an issue where standard browsers throttle time once a page becomes inactive, which is throwing out my timer. I can't figure out how to integrate a webworker although this seems like it could be a solution.

const timer = 1000 * 60 * 15

setTimeout(test, timer)

function test() {
    console.log("worked");
}

Is there another, simpler way to run the test function after 15 minutes other than a webworker? Or is there a video/tutorial that might help me figure out webworkers?

about 4 years ago · Juan Pablo Isaza
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