Forum:Import script for navigation popups only works in certain positions

Here is the link to our sitewide js page:http://religion.wikia.com/wiki/MediaWiki:Wikia.js

It consisted of a few js functions used for some buttons that are on a few pages

then some variables are defined for the statcounter

then the statcounter is imported

then navigation popups is imported.

navigation popups will not work if its import line is placed above the functions

nor will it work if its import line is placed below the statcounter import line

Can anyone shed any light on this behavior.

Granpa (talk) 13:48, August 26, 2012 (UTC)


 * Best I can figure out is that the popups script isn't designed to work on anything other than Wikimedia projects. It contains broken references to variables which don't exist on Wikia; as soon as it hits that point, everything stops due to the error. Try adding:


 * before the  for the popup script. See if that helps. It's hard to tell as everything seems to work right now, if it was still broken I could investigate more deeply. Lunarity 14:49, August 26, 2012 (UTC)