diff --git a/web_interface/templates/v3/base.html b/web_interface/templates/v3/base.html
index 1e76b82e..2e75073d 100644
--- a/web_interface/templates/v3/base.html
+++ b/web_interface/templates/v3/base.html
@@ -448,7 +448,7 @@
}
// Fallback if HTMX doesn't load within 5 seconds
- setTimeout(() => {
+ var _pluginsFallbackTimer = setTimeout(() => {
if (typeof htmx === 'undefined') {
console.warn('HTMX not loaded after 5 seconds, using direct fetch for plugins');
// Load plugins tab content directly regardless of active tab,
@@ -456,6 +456,7 @@
loadPluginsDirect();
}
}, 5000);
+ window.addEventListener('htmx:ready', function() { clearTimeout(_pluginsFallbackTimer); }, { once: true });