Prewarm email list before first open

This commit is contained in:
pewdiepie-archdaemon
2026-06-01 14:24:48 +09:00
parent 0be870f837
commit 4dbc0fe73a
2 changed files with 58 additions and 4 deletions
+2 -1
View File
@@ -5,7 +5,7 @@
import spinnerModule from './spinner.js';
import sessionModule from './sessions.js';
import { initEmailLibrary, openEmailLibrary, closeEmailLibrary, isOpen as isLibOpen } from './emailLibrary.js';
import { initEmailLibrary, openEmailLibrary, closeEmailLibrary, isOpen as isLibOpen, prewarmEmailLibrary } from './emailLibrary.js';
import * as Modals from './modalManager.js';
import { applyEdgeDock } from './modalSnap.js';
@@ -161,6 +161,7 @@ function _bindEvents() {
// Initial unread count check, refresh every 60s
_refreshUnreadCount();
setInterval(_refreshUnreadCount, 60000);
prewarmEmailLibrary({ delay: 3000 });
// Deep-link: #email=<folder>:<uid> opens the library and expands that card
_maybeOpenFromHash();