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:
parent
398388de10
commit
1b43c54725
1 changed files with 9 additions and 7 deletions
16
ui/index.jsx
16
ui/index.jsx
|
@ -262,14 +262,16 @@ function AppWrapper() {
|
|||
|
||||
useEffect(() => {
|
||||
if (readyToLaunch && persistDone) {
|
||||
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());
|
||||
|
||||
setTimeout(() => {
|
||||
if (DEFAULT_LANGUAGE) {
|
||||
app.store.dispatch(doFetchLanguage(DEFAULT_LANGUAGE));
|
||||
}
|
||||
app.store.dispatch(doUpdateIsNightAsync());
|
||||
app.store.dispatch(doBlackListedOutpointsSubscribe());
|
||||
app.store.dispatch(doFilteredOutpointsSubscribe());
|
||||
}, 25);
|
||||
|
||||
analytics.startupEvent(Date.now());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue