On Mon, Dec 2, 2013 at 11:56 PM, Gerard Meijssen <gerard.meijs...@gmail.com>wrote:
> Hoi, > There are two ways of enabling this Wikidata search functionality; Wiki > wide and personally. It is done by adding this one line to common.js.. > > > importScriptURI("// > en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript > "); > > You add it either to mediawiki:common.js or to USER/common.js. > Thanks, > GerardM > Please don't load the script on every page. It only targets the search result page. This means a redundant request on every page that isn't the search page. You can change it to: if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Search' ) { importScriptURI("// en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js&action=raw&ctype=text/javascript "); } Thanks! Ori
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l