background the first AmCountryList load to keep from holding up the Profile dialog

This commit is contained in:
2026-03-25 22:19:15 -06:00
parent e16110dd5a
commit 8fec8cb841
+3
View File
@@ -346,6 +346,9 @@ func setupTemplates() {
s := a.Get(0).Convert(reflect.TypeFor[string]()).String() s := a.Get(0).Convert(reflect.TypeFor[string]()).String()
return reflect.ValueOf(util.CapitalizeString(s)) return reflect.ValueOf(util.CapitalizeString(s))
}) })
// Start the country list initializing in the background.
go util.AmCountryList(config.GlobalConfig.Rendering.CountryList.Prioritize)
} }
// TemplateRenderer is the Renderer instance set into the Echo context at creation time, to render Jet templates. // TemplateRenderer is the Renderer instance set into the Echo context at creation time, to render Jet templates.