wiki.techinc.nl/maintenance/jsduck
Siddharth VP c29ac9023f mediawiki.base: Restore and document importScript "once" behaviour
As part of I0738244e0609b23 (51155b0), I missed that the "once" behaviour
was not limited to importScriptURI but applied to importScript also.
This commit restores that.

In order to balance out the added bytes, optimise the code further
by re-using addLink/addScript from mw.loader.

With mw-docker locally, fresh Main_Page load, measuring total JS
transfer size:
* Before: 97.77KB
* After: 97.71KB

Change-Id: I0516527d5cc05ac41d20ab0891b7bdd1052fe172
2022-09-01 02:27:54 +02:00
..
.eslintrc.json eslint: Only apply client rules to client files 2022-02-09 02:40:11 +00:00
categories.json mediawiki.base: Restore and document importScript "once" behaviour 2022-09-01 02:27:54 +02:00
custom_tags.rb Replace @context with @this 2020-06-15 21:49:06 +01:00
eg-iframe.html ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
external.js Documentation fixes for upcoming ESLint config change 2020-05-16 20:02:13 +00:00