I’ve got an application that needs to be able to function (as fully as possible) in the absence of wifi. Non-networked components should work, while all networked components should simply be unresponsive (but not impede functionality of other components).
Specifically, I want a map component to fail gracefully, but currently it prevents the entire application from loading.
So far, we’ve tried nesting the network calls from UIBootloader.js (e.g. loadGoogle( )) in try-catch blocks to no avail (try the network call, if it fails, do nothing). I also tried adding some basic checks for connection (window.navigator.onLine), but it seems that there’s a setup call for google analytics made elsewhere.
I’m not actually sure what behavior should be controlled–I’ve just been trying to stop things from trying to load if there’s no wifi, as opposed to defining separate behavior for that case.
Any idea how to approach this situation? (in any case, an explanation of the “behind the scenes” UI loading process would also help)