Thread:Cqm/@comment-1158325-20130605033107/@comment-3335785-20130605104934

JS is technically run after the document is ready (something to do with ResourceLoader iirc), but it's a good idea, just to be safe. Edit: Mathmagician was the person who told me about it. ResourceLoader loads scripts at the end of the body tag, hence they load more or less at the document ready state, but it's not something you sould rely on.

The alteration to the import is a Wikia recommendation due to the slightly odd way importArticles works. Looking at Help:Including additional JavaScript and CSS, it seems to be cross-language problem. It'll work for english script to english wikis, but no necessarily for when it's a non-english wiki.