From 685f167965f20720b842aeb07e67c42b8fce915a Mon Sep 17 00:00:00 2001 From: Arild Matsson Date: Wed, 18 Sep 2024 10:10:52 +0200 Subject: [PATCH] perf: start fetching locales earlier --- app/scripts/data_init.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/scripts/data_init.ts b/app/scripts/data_init.ts index ae94bea79..4556aa76c 100644 --- a/app/scripts/data_init.ts +++ b/app/scripts/data_init.ts @@ -237,13 +237,13 @@ export async function fetchInitialData(authDef: Promise) { return } + // Start fetching locales asap. Await and read it later, in the Angular context. + initLocales() + if (settings.config_dependent_on_authentication) { await authDef } - // Start fetching locales asap. Await and read it later, in the Angular context. - initLocales() - setDefaultConfigValues() // Fetch corpus configuration and metadata