XWIKI-10191: Make the XWiki.Document JS API usable before the xwiki:dom:loading event
Done.