Skip to content

Commit

Permalink
perf: start fetching locales earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Sep 18, 2024
1 parent c2fa838 commit 685f167
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/data_init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ export async function fetchInitialData(authDef: Promise<boolean>) {
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
Expand Down

0 comments on commit 685f167

Please sign in to comment.