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