Forum:Script in the HEAD

Hello, I have a script for stats-collecting purpose which I put in Common.js and it's working fine, but I read it's better to put that code in the  section of the page, but how can I load a script in the HEAD section since I can't edit the HTML code directly? Is it possible?


 * Where did you read it is better to put it in the HEAD? -- Fandyllic (talk &middot; contr) 23 Sep 2011 10:57 PM Pacific


 * I suppose for general HTML webpage design, putting scripts in the is better than stashing them in the . However, any codes in the MediaWiki:Common.js are automatically loaded in the of each page, so you don't need to worry about it. --Gardimuer { ʈalk } 06:11, September 24, 2011 (UTC)


 * It's better to place it in the head because the script will be executed before the user can get out the page, so the visitor will be counted even if one leaves immediately the page. Is it already in the head? Strange the "script provider" says it's not placed in the head... well whatever, it's not so important anyway. Thank you.