From 3fd61b1706648f21ed79f1e28408e8b59d50c55b Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Mon, 18 Apr 2016 18:13:18 -0700 Subject: [PATCH] registration: Support skipFunction module definitions Change-Id: I9c5cea3e8df1fae001d4d98c0782a04dec803776 --- docs/extension.schema.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/extension.schema.json b/docs/extension.schema.json index a743afa080..370e18e274 100644 --- a/docs/extension.schema.json +++ b/docs/extension.schema.json @@ -322,6 +322,10 @@ "type": "string", "description": "Equivalent of remoteBasePath, but relative to $wgExtensionAssetsPath" }, + "skipFunction": { + "type": "string", + "description": "Modules that provide fallback functionality can provide a \"skip function\". This function, if provided, will be passed along to the module registry on the client. When this module is loaded (either directly or as a dependency of another module), then this function is executed first. If the function returns true, the module will instantly be considered \"ready\" without requesting the associated module resources. The value returned here must be valid javascript for execution in a private function. It must not contain the \"function () {\" and \"}\" wrapper though." + }, "scripts": { "type": ["string", "array"], "description": "Scripts to always include (array of file paths)", -- 2.20.1