Manual:$wgResourceLoaderStorageEnabled

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgResourceLoaderStorageEnabled and the translation is 50% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎polski • ‎日本語
ResourceLoader: $wgResourceLoaderStorageEnabled
Whether ResourceLoader should attempt to persist modules in localStorage on browsers that support the Web Storage API.
導入されたバージョン:1.23.0 (git #c7194016)
除去されたバージョン:使用中
許容される値:(真偽値)
既定値:true (MediaWiki 1.28+)
false (MediaWiki 1.27 以前)
その他の設定: アルファベット順 | 機能順

詳細

If set to true, ResourceLoader modules are cached in localStorage in modern browsers and loaded with eval(). This allows invalidating a module that has been updated without invalidating the other modules, even if they are all loaded as a single minified-concatenated file.

This will speed up page loading on wikis where the JS code changes frequently. It might cause weird behavior in browser developer toolbars (such as some source files not showing up) so you might want to disable it on local developer wikis used for debugging.