On 1/19/06, Tony Bowden <tony-wikitech(a)kasei.com> wrote:
On Thu, Jan 19, 2006 at 11:43:45PM +1100, Stephen Bain
wrote:
There's global css and js files for several
of the skins, in the
Mediawiki namespace. For example, on enwiki:
http://en.wikipedia.org/wiki/MediaWiki:Monobook.js
http://en.wikipedia.org/wiki/MediaWiki:Monobook.css
So everyone using the Monobook skin gets those files. You don't need
to modify any code, it's all stored in the database.
AIUI though, there's no way from within a Javascript file like this to
load another remote Javascript file (i.e. the one from Google's
servers).
I don't know the full scope of this particular problem, but I believe
using document.write() to put out a <script> tag works. Beware,
though, for this introduces more latency (the source document has to
wait for the inserted one to load).