Config.json can fail because of temporary connectivity issues. It would be beneficial to implement retry policy here.
I suggest to do the following:
- Attempt to load. In case of exception (Network Error) wait for 1 second
- Retry … (wait for 2 seconds)
- Retry … (Replace "Loading…" with "Some network problems. Still loading…". wait for 5 seconds)
- Retry … (wait for 10 seconds)
- Retry … Fallback to current error