Last modified: 2006-03-26 08:35:43 UTC
Maybe there is a reason why wikibits.js is loaded after the Monobook.js is being generated (see HTML source), but if not it would be good if the "global" wikibits.js could be loaded before Monobook.js and User/monobook.js! This would reduce redundancy, as this rendering order would offer us to use some variables that are used in wikibits.js, and we especially could use the function "hookEvent"; see the given URL.
Ok, wikibits.js now loaded first. Warning: previously cached pages have it the other way around, so be careful about MediaWiki:Monobook.js. In your user JS you can be more wacky.
This is not good. The generated javascript file (/w/index.php?title=-&action=raw&gen=js) has to be before wikibits.js: It generates the variables skin and stylepath, which are used in wikibits.js to load browser specific css patches for Opera and KHTML - these are now not loaded.
By the way: Opera 9 supports the new CSS 3 selector ^=. So there should be a new Opera9Fixes.css, because overwriting the normal stylesheet for external links results in having external.png behind every link (also https, mailto etc.). In previous Opera versions this is fine, but for Opera 9 this is not good.
That would be a separate issue (eg, some variables being set in the wrong place).
Christian Thiele is right. At the top of http://en.wikipedia.org/w/index.php?title=-&action=raw&gen=js there is var skin = 'monobook'; and var stylepath = '/skins-1.5'; Those variables are used in wikibits.js under "document.write special stylesheet links"! Is there a better way of defining those two variables? Maybe directly in the html source? Or could you separate the generated .js from Monobook.js in some way?
Those definitely belong in the page source; putting them in a separate .js is unreliable, and may be the cause of the bogus requests we see in logs, if one fails and the other doesn't .
... just leaving a note here on a now separated bug: Bug 5342 "Missing link icons in Opera"
Bug 5355: "Put the JavaScript variables "skin" and "stylepath" into the html page source"