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

194
Vistas
Any way to auto retry document.location.reload()?

We have a live dashboard (basic website that shows various data). We often push updates to the html and javascript and want the page to reload regularly to pull in the updates. Note that I am not talking about updating the data shown on the dashboard. We do that with ajax. I mean refreshing the html, css, js. We use document.location.reload(true) on an interval to reload the page. I realize that the 'true' is probably ignored.

The problem is the reload sometimes fails (server times out, internet hiccup, etc...) and then we are left with a blank browser an have to manually reload. Not ideal for something that should just be a live dashboard.

Is there a way to auto retry a reload? or maybe a better way to refresh the page?

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