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

100
Vistas
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 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