Topic on Talk:ResourceLoader/Migration guide (users)

Jump to navigation Jump to search
86.43.191.217 (talkcontribs)

How do you actually activate ResourceLoader? Particularly with an older pre 1.16 skin?

Furthermore, how do you load individual plug-ins?

Krinkle (talkcontribs)

Skins have little to no documentation. Look at the Vector skin that skips with your MediaWiki version (1.20 I hope?) and use that as leading example.

There is no turning it on, ResourceLoader is everywhere. It is all around us. Even now, in this very room.

A few (but not all) key points in making sure you're not breaking the javascript loading flow:

  • Use $this->html( 'headelement' );
  • Use $this->printTrail
  • Use $out->addModules( .. );
  • Don't use <script src="..." ..>