gustafl / lexeme

A new take on language learning.
1 stars 0 forks source link

Make application demo-friendly #102

Open gustafl opened 8 years ago

gustafl commented 8 years ago

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.

gustafl commented 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.

gustafl commented 8 years ago

Best way to do this is probably to just not call loadLanguageConfiguration() if we get an AJAX fail.