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
|
@ -262,14 +262,16 @@ function AppWrapper() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (readyToLaunch && persistDone) {
|
if (readyToLaunch && persistDone) {
|
||||||
|
app.store.dispatch(doDaemonReady());
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
if (DEFAULT_LANGUAGE) {
|
if (DEFAULT_LANGUAGE) {
|
||||||
app.store.dispatch(doFetchLanguage(DEFAULT_LANGUAGE));
|
app.store.dispatch(doFetchLanguage(DEFAULT_LANGUAGE));
|
||||||
}
|
}
|
||||||
|
|
||||||
app.store.dispatch(doUpdateIsNightAsync());
|
app.store.dispatch(doUpdateIsNightAsync());
|
||||||
app.store.dispatch(doDaemonReady());
|
|
||||||
app.store.dispatch(doBlackListedOutpointsSubscribe());
|
app.store.dispatch(doBlackListedOutpointsSubscribe());
|
||||||
app.store.dispatch(doFilteredOutpointsSubscribe());
|
app.store.dispatch(doFilteredOutpointsSubscribe());
|
||||||
|
}, 25);
|
||||||
|
|
||||||
analytics.startupEvent(Date.now());
|
analytics.startupEvent(Date.now());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue