From ea9fadb3e00080ecc7e7d7cf699d1c76e93b1eb6 Mon Sep 17 00:00:00 2001 From: Chris Christiansen Date: Wed, 24 Jun 2026 13:45:14 +0000 Subject: [PATCH] fix(ui): Defer pollBuild execution until DOM is loaded --- static/opax.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/opax.html b/static/opax.html index bade0c9..41ffb8d 100644 --- a/static/opax.html +++ b/static/opax.html @@ -794,8 +794,10 @@ async function pollBuild(){ return null } } -pollBuild() -setInterval(pollBuild,30000) +document.addEventListener('DOMContentLoaded', () => { + pollBuild() + setInterval(pollBuild,30000) +}) // ─── Fix 3: CostGuard — fetchWithTimeout helper (AbortController, 10s) ─── function fetchWithTimeout(url, ms=10000){