If this page persists for a long time, there may have been an issue during the build
process.

const MAX_RELOADS = 2;
const RELOAD_DELAY_MS = 5000;
const RESET_THRESHOLD_MS = 30000;

const now = Date.now();
let startTime = Number(sessionStorage.getItem(«warmup_start_time») || «0»);

// If the last reload attempt was a long time ago, reset the start time.
// This handles the case where the app was working but then restarted later.
if (now – startTime > RESET_THRESHOLD_MS) {
startTime = now;
sessionStorage.setItem(«warmup_start_time», startTime.toString());
}

// Reload if we are still within the allowed warmup window.
if (now – startTime {
window.location.reload();
}, RELOAD_DELAY_MS);
}