diff --git a/src/app.jsx b/src/app.jsx index e1858af5..a1cd0292 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -327,6 +327,7 @@ function App() { const [isLoggedIn, setIsLoggedIn] = useState(false); const [uiState, setUIState] = useState('loading'); __BENCHMARK.start('app-init'); + __BENCHMARK.start('time-to-following'); __BENCHMARK.start('time-to-home'); useLingui(); diff --git a/src/locales/en.po b/src/locales/en.po index 1b782790..5d74b90d 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -531,7 +531,7 @@ msgstr "" #: src/pages/catchup.jsx:876 #: src/pages/filters.jsx:89 #: src/pages/followed-hashtags.jsx:40 -#: src/pages/home.jsx:52 +#: src/pages/home.jsx:53 #: src/pages/notifications.jsx:505 msgid "Home" msgstr "" @@ -1248,7 +1248,7 @@ msgstr "" #: src/components/nav-menu.jsx:207 #: src/components/shortcuts-settings.jsx:58 #: src/components/shortcuts-settings.jsx:143 -#: src/pages/home.jsx:223 +#: src/pages/home.jsx:224 #: src/pages/mentions.jsx:20 #: src/pages/mentions.jsx:167 #: src/pages/settings.jsx:1037 @@ -1260,8 +1260,8 @@ msgstr "" #: src/components/shortcuts-settings.jsx:49 #: src/components/shortcuts-settings.jsx:149 #: src/pages/filters.jsx:24 -#: src/pages/home.jsx:83 -#: src/pages/home.jsx:183 +#: src/pages/home.jsx:84 +#: src/pages/home.jsx:184 #: src/pages/notifications.jsx:106 #: src/pages/notifications.jsx:509 msgid "Notifications" @@ -2298,7 +2298,7 @@ msgid "New posts" msgstr "" #: src/components/timeline.jsx:554 -#: src/pages/home.jsx:212 +#: src/pages/home.jsx:213 #: src/pages/notifications.jsx:796 #: src/pages/status.jsx:945 #: src/pages/status.jsx:1318 @@ -3008,15 +3008,15 @@ msgstr "" msgid "Go to my instance (<0>{currentInstance})" msgstr "" -#: src/pages/home.jsx:208 +#: src/pages/home.jsx:209 msgid "Unable to fetch notifications." msgstr "" -#: src/pages/home.jsx:228 +#: src/pages/home.jsx:229 msgid "<0>New <1>Follow Requests" msgstr "" -#: src/pages/home.jsx:234 +#: src/pages/home.jsx:235 msgid "See all" msgstr "" diff --git a/src/pages/following.jsx b/src/pages/following.jsx index af6f8608..bc7e5dd1 100644 --- a/src/pages/following.jsx +++ b/src/pages/following.jsx @@ -66,7 +66,6 @@ function Following({ title, path, id, ...props }) { }); } __BENCHMARK.end('fetch-home-first'); - __BENCHMARK.end('time-to-home'); return { ...results, value, @@ -101,6 +100,7 @@ function Following({ title, path, id, ...props }) { } useEffect(() => { + __BENCHMARK.end('time-to-following'); let sub; (async () => { if (streaming) { diff --git a/src/pages/home.jsx b/src/pages/home.jsx index 8e265ed6..48bbf472 100644 --- a/src/pages/home.jsx +++ b/src/pages/home.jsx @@ -28,6 +28,7 @@ function Home() { const { _ } = useLingui(); const snapStates = useSnapshot(states); useEffect(() => { + __BENCHMARK.end('time-to-home'); (async () => { const keys = await db.drafts.keys(); if (keys.length) {