This only helps iff there is a short transient network error which prevents the configuration from being loaded. In such case, use the cached version in localStorage, which may not match the shard, but it's (probably!) better than nothing. In case there is no Internet connectivity, an error will be produced as soon as the XMPP connection is attempted anyway.