Board Thread:Support Requests - Getting Technical/@comment-3448772-20121221215858/@comment-5209426-20121222085354

Wikia's MW installation loads page scripts in the footer. jQuery, mediawiki and other dependent scripts (like importScript) do not exist until after all HTML has been processed. i.e. code in verbatim tags has no access to anything that exists in Common.js or a user's wikia.js/global.js. You must code without jQuery, and without referencing any wg* variables or functions (use pure native JS and DOM only).