Live server refreshing every second without changes in code file
Asked Answered
C

2

5

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

Carroty answered 25/10, 2021 at 21:2 Comment(3)
Please provide enough code so others can better understand or reproduce the problem.Riojas
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 loopApperception
I proposed that this be closed as a dup of How to make live-server stop refreshing when nothing changed and then merge them together into one Q&A.Knitted
V
6

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.

Vo answered 27/5, 2022 at 20:18 Comment(0)
O
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.

Ouster answered 22/9, 2022 at 17:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.