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

117
Visualizações
Browser stops making AJAX requests after period of inactivity

I've created an empty HTML page with a simple setInterval() that fires an AJAX call, via window.fetch(), every 30 seconds, indefinitely. In Chrome, however, if I leave my computer for 24 hours and come back to it, I notice that at some point, the AJAX calls stopped firing.

Note that this computer does not go to sleep, hibernate, screen lock, etc. In other words, I walk away from the monitor, come back the next day, see the exact same screen I left it at when the day prior, and yet the Network tab in the Chrome debugger shows the browser stopped making the AJAX calls at some point.

What I'm wondering is, do browsers have some sort of internal process or thread management where they put "idle" tabs to sleep and stop executing network calls, or stop executing JavaScript intervals and/or timeouts? Is there some sort of resource conservation/memory management modern browsers do, where they put tabs to "sleep", that might explain this?

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