From 475c50b743fe207d2fefc2aca6d2a3750d1efcea Mon Sep 17 00:00:00 2001 From: Trevor Mears Date: Sun, 18 Jan 2026 19:11:21 -0800 Subject: [PATCH] feat: add epg preload to app initialization --- public/js/app.js | 6 ++++++ 1 file changed, 6 insertions(+) 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';