Index: doc/API_web.md ================================================================== --- doc/API_web.md +++ doc/API_web.md @@ -42,13 +42,11 @@ if (typeof(oGrammalecteAPI) === "object" && oGrammalecteAPI !== null) { ... } -When the Grammalecte API is ready, it sends an event called `GrammalecteLoaded` on the `document` node. - -You can detect it with: +Alternatively, when the Grammalecte API is ready, it sends an event called `GrammalecteLoaded` on `document`. You can detect it with: document.addEventListener("GrammalecteLoaded", function (event) { ... });