diff --git a/starpilot/system/the_pond/assets/components/tools/speed_limits.js b/starpilot/system/the_pond/assets/components/tools/speed_limits.js index 84d3aa292..648460583 100644 --- a/starpilot/system/the_pond/assets/components/tools/speed_limits.js +++ b/starpilot/system/the_pond/assets/components/tools/speed_limits.js @@ -91,7 +91,18 @@ export function SpeedLimits() { fetchStatus() if (pollTimer === null) { - pollTimer = setInterval(fetchStatus, 3000) + pollTimer = setInterval(() => { + if (window.location.pathname !== "/download_speed_limits") { + clearInterval(pollTimer) + pollTimer = null + state.fetched = false + return + } + if (document.visibilityState !== "visible") { + return + } + fetchStatus() + }, 3000) } }