marcinho51
marcinho51

Reputation: 61

Live server refreshing every second without changes in code file

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? :)

Upvotes: 6

Views: 5680

Answers (2)

windyrebel
windyrebel

Reputation: 11

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.

Upvotes: 1

lutrarutra
lutrarutra

Reputation: 474

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.

Upvotes: 7

Related Questions