Index: skins/common/wikibits.js =================================================================== --- skins/common/wikibits.js (revision 32923) +++ skins/common/wikibits.js (working copy) @@ -26,8 +26,12 @@ } function addOnloadHook(hookFunct) { - // Allows add-on scripts to add onload functions - onloadFuncts[onloadFuncts.length] = hookFunct; + // Allows add-on scripts to add onload functions + if(!doneOnloadHook) { + onloadFuncts[onloadFuncts.length] = hookFunct; + } else { + hookFunct(); // for calls after runOnloadHooks + } } function hookEvent(hookName, hookFunct) {