How do I upload jQuery to mediawiki?
2 answers
As explained on the MediaWiki manual page "Upload / Transfer Resources (Users) Guide" :
mw.loader.using( ['jquery.cookie'], function () {
/* some other script that uses $.cookie from jQuery*/
} );
You should use either load()
or using()
and select the appropriate jquery modules depending on what you need to do.
+3
source to share