Manual:Hooks/BeforePageDisplay

Details

 * This hook was in SkinTemplate.php until version 1.12.0


 * &$out - The OutputPage object.
 * &$skin - Skin object that will be used to generate the page, added in 1.13.

Usage
Scripts, styles, and other header elements can be added to the OutputObject at this point.

For MediaWiki 1.17 and above, there is a new Resource loader that you should use.

For MediaWiki 1.16 and below, you should use.
 * - Add a JS file. $path is the path to the JS file, such as
 * - Add a JS file. $html is a full script tag:
 * - Add a CSS file. $src is a URL to a stylesheet.
 * - Add a  tag.
 * - Add a keyword for the keyword  tag.
 * - Add inline JS.
 * - Add a link for the keyword  tag.