3

When I'm using Live Server extension in VS Code, my browser is refreshing every second, even though I do not make nor save any changes in my code file.

Why is that happening and how to solve this problem?

Can anybody help me? :)

marcinho51
  • 31
  • 2
  • Please provide enough code so others can better understand or reproduce the problem. – Community Oct 26 '21 at 09:39
  • same happen to me, vscode win 10 x64, if I press save multiple times in short time, "reload" message is continuously send to live server extension in chrome, causing chrome reload in loop – Nuha Dzikri Apr 23 '22 at 22:54

2 Answers2

2

I had the same problem. The issue was my (unrelated) script was running in background and writing to a file in the same directory. Live server detected these changes and sent the "reload" request to the browser.

lutrarutra
  • 180
  • 1
  • 10
0

I had this issue recently as well, and I spoke with a couple of people while testing various browsers.

We figured out that the issue was there was too much loaded into VSCode and it was looking through every single project/written code.

I closed VSCode down and then opened my repo for the particular project in terminal. I then used code . which opens VSCode, it opened only that specific repo/folders and then tried using Live server which worked perfectly with no refreshes happening.