Board Thread:General Coding Help/@comment-24473195-20141007203119/@comment-24473195-20141008090904

Cqm wrote: Scripts are loaded on Wikia through two different functions: If you're using ResourceLoader you can add ?debug=true to your URL which will force the most recent version of a script to load amongst other things that are helpful when developing a new script or debugging something that isn't working as expected.
 * importArticles, which loads scripts through ResourceLoader (load.php)
 * importScript (and variants) which loads through index.php

If you're using importScript, importScriptPage or importScriptURI it's a bit more involved. Normally a script might load through /index.php?title=Foo.js&action=raw&ctype=text/javascript However, that could take a while to uncache after an update. To get around this, you can use a URL like /index.php?title=Foo.js&action=raw&ctype=text/javascript&smaxage=0andmaxage=0 which will always use the newest version of the script. If you want to look how an override of these functions might look, I've done so in my global.js. I'm actually working with the chat scripts. So it is a mix of box I guess. In particular the chat seems to maintain my presence there for a few minutes after I leave of the room. During that time it seems basically impossible to refresh the scripts.

Anyway, I had a look at your global.js, I'm actually confused as to which ones I would need. Do I just add the two functions on top?

I'm a bit new to javascript so it isn't all that obvious to me.