gustafl / lexeme

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

Cache grammatical categories locally #68

Closed gustafl closed 8 years ago

gustafl commented 8 years ago

It's crazy to make an AJAX call every time you click a lexical category button, to get the associated grammatical categories. The grammatical categories and their grammemes should be cached locally as soon as the document's language is known. And there should be only one AJAX call to download them all. Of course, if they are missing in Local Storage, they need to be downloaded again.

We may need a new REST API method to download all grammatical categories + grammemes for a language.

gustafl commented 8 years ago

Stored procedure and REST API is updated now.

gustafl commented 8 years ago

The loading of buttons from the AJAX call is now in place.

gustafl commented 8 years ago

Done! This was a big one.