Closed stickperson closed 9 years ago
What do you think of doing something like setTimeout( function() { location.reload(); }, 60 * 1000 );
instead of the recursive call?
That's a much simpler solution. Even if the refresh interval is every 30s, I don't see a drawback in reloading the entire page.
It would be interesting to have the refresh interval be configurable, but I don't have any strong feelings about either a 30s vs a 60s refresh period.
Looks great, thanks for this!
Wrap graphing logic in a function that's called recursively every minute. The recursive call could be problematic. Maybe have some way to clear the setTimeout after some time?