Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

116
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!