Il 05/dic/2013 07:32 "Ori Livneh" <o...@wikimedia.org> ha scritto: > 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 > "); > }
It is used also in ns0 pages that do not exist yet. C _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l