Open gustafl opened 8 years ago
Look into the $.ajax.fail()
method to fallback gracefully. Also, show a notifying message for a few seconds that a a fallback was used.
Best way to do this is probably to just not call loadLanguageConfiguration()
if we get an AJAX fail.
One way of doing that is to cut the dependency on the REST web service and database. Include the JSON from the REST API in the client-side script. Trigger the hard-coded JSON with a
connect=no
query string.