diff --git a/src/js/nostr/PubSub.ts b/src/js/nostr/PubSub.ts index 9a1a0409..4b9a0f72 100644 --- a/src/js/nostr/PubSub.ts +++ b/src/js/nostr/PubSub.ts @@ -117,7 +117,10 @@ const PubSub = { callback && EventDB.find(filter, callback); if (dev.indexedDbLoad !== false) { - IndexedDB.subscribe(filter); + setTimeout(() => { + // seems blocking. use web worker? bulk get? + IndexedDB.subscribe(filter); + }); } const unsubRelays = this.subscribeRelayPool(filter, sinceLastOpened, mergeSubscriptions);