diff --git a/public/js/app.js b/public/js/app.js index cd4010b..c4d2f8c 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -150,6 +150,12 @@ class App { // Initialize home page first (it's needed for channel list) await this.pages.home.init(); + // Preload EPG data in background (non-blocking) + // This ensures EPG info is available on Live TV page without visiting Guide first + this.epgGuide.loadEpg().catch(err => { + console.warn('Background EPG load failed:', err.message); + }); + // Navigate to the page from URL hash, or default to home const hash = window.location.hash.slice(1); // Remove # const initialPage = hash && this.pages[hash] ? hash : 'home';