message: Move login code higher up
diff: @@ -287,14 +287,6 @@ async function loadIndex (
  predicate: NamedNode,
  isPublic: boolean
  ): Promise<AuthenticationContext> {
  - // Loading preferences is more than loading profile
  - try {
  - await (isPublic
  - ? logInLoadProfile(context)
  - : logInLoadPreferences(context))
  - } catch (err) {
  - widgets.complain(context, `loadPublicIndex: login and load problem ${err}`)
  - }
  const me = context.me
  let ixs
  context.index = context.index || {}
  @@ -428,6 +420,15 @@ export async function findAppInstances (
  return context
  }
  + // Loading preferences is more than loading profile
  + try {
  + await (isPublic
  + ? logInLoadProfile(context)
  + : logInLoadPreferences(context))
  + } catch (err) {
  + widgets.complain(context, `loadPublicIndex: login and load problem ${err}`)
  + }
  +
  const visibility = isPublic ? 'public' : 'private'
  try {
  await loadOneTypeIndex(context, isPublic)
  