The idea
To speed up my development I want to automatically refresh the browser if I change the file test.html
.
My setup
I'm on Linux and I start my server with
python -m SimpleHTTPServer
in a terminal so that I can open my test.html
in my browser with
http://localhost:8000/test.html
I have to open the test.html
like this (and not with file://
) because I use live.js. This javascript tool checks every second (!) if test.html
has changed..and if so it refreshes the browser automatically.
My problem
The checking interval keeps increasing...
...and increasing....
...and never seems to stop
At the end if I change the test.html
file is takes a lot of time to refresh the browser.
My question
I want to work live.js in real time but I think the server slows the process down. Am I right?
How can I get live.js to work in real time?
EDIT
As Serge Ballesta suggested I increased the interval to 10 sec but this doesn't work neither.