Jump to content

Manual:$wgResourceLoaderValidateJS

From mediawiki.org
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

Details

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.