Jump to content
MediaWiki

Manual:$wgResourceLoaderValidateJS

From mediawiki.org
Revision as of 12:42, 14 January 2024 by Shirayuki (talk | contribs) (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
ResourceLoader: $wgResourceLoaderValidateJS
Validate JavaScript code loaded from wiki pages.
Introduced in version:1.18.0 (r91608)
Removed in version:Still in use
Allowed values:(boolean)
Default value:true
Other settings: Alphabetical | By function

Details

[edit ]

Validate JavaScript code loaded from wiki pages. If a syntax error is found, the script is replaced with a warning logged to the browser console. This ensures errors are found early and consistently (independent of the editor's own browser), and prevents breaking other modules loaded in the same batch from load.php.

AltStyle によって変換されたページ (->オリジナル) /