Every call to the Grammalecte API will be done via an object called `oGrammalecteAPI`.
if (typeof(oGrammalecteAPI) === "object" && oGrammalecteAPI !== null) {
...
}
When the Grammalecte API is ready, it sends an event called `GrammalecteLoaded` on the `document` node.Alternatively, when the Grammalecte API is ready, it sends an event called `GrammalecteLoaded` on `document`. You can detect it with:
You can detect it with:
document.addEventListener("GrammalecteLoaded", function (event) {
...
});
### Version of the Grammalecte API