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

489
Views
When refreshing a page on localhost, why does the file download hang until I close the page?

I'm accessing HTML/JS files on localhost served by Node. When I update the code, Webpack automatically rebuilds the JS files.

Sometimes, after I update some code and refresh the page, the JS file download hangs forever. It still hangs after:

  • refreshing
  • opening the JS file directly
  • opening the HTML in a separate tab
  • waiting a long enough time that the file definitely finished rebuilding
  • restarting the Node server

It occurs whether or not Devtools is open.

The only ways I've found to stop it from hanging are:

  • closing the original tab
  • going to the localhost root (http://localhost/)

Why does this happen? I'm using Chrome 88 on Windows 10. I think this is caused by Chrome and not Node, since restarting the Node server didn't do anything.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

NodeJS has a cluster module which may speed up your execution: https://nodejs.org/api/cluster.html

over 4 years ago · Santiago Trujillo Report
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!