[Mediawiki-l] efficiently adding javascript / css to page header

Rob Church robchur at gmail.com
Thu May 17 15:09:59 UTC 2007


On 17/05/07, Ittay Dror <ittayd at qlusters.com> wrote:
> So, is there a way of better associating javascript with a page?

In newer versions of MediaWiki, use Parser::addHeadItems(); see
associated members and functions in Parser, ParserOutput and
OutputPage.

This is a recent addition from Tim Starling, which is an alternative
implementation of extension output handlers.


Rob Church



More information about the MediaWiki-l mailing list