For a Userscript I need to wait for a google document to be ready (fully loaded).
I tried to check the document's readyState following this answer (among others). But google docs doesn't seem to use it.
So how to know when a google doc is fully loaded?