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

493
Visualizações
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 Respostas
Responde à pergunta

0

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

over 4 years ago · Santiago Trujillo Relatório
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