Defer blocklists slightly to not block me

Now, with the exception of connecting to lbry.com after re-opening the browser (i.e. establishing first connection), refreshing odysee.com is almost instantaneous.
This commit is contained in:
infinite-persistence 2021-10-22 17:25:16 +08:00
parent 398388de10
commit 1b43c54725
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -262,14 +262,16 @@ function AppWrapper() {
useEffect(() => {
if (readyToLaunch && persistDone) {
app.store.dispatch(doDaemonReady());
setTimeout(() => {
if (DEFAULT_LANGUAGE) {
app.store.dispatch(doFetchLanguage(DEFAULT_LANGUAGE));
}
app.store.dispatch(doUpdateIsNightAsync());
app.store.dispatch(doDaemonReady());
app.store.dispatch(doBlackListedOutpointsSubscribe());
app.store.dispatch(doFilteredOutpointsSubscribe());
}, 25);
analytics.startupEvent(Date.now());
}