DokuWiki

It's better when it's simple

User Tools

Site Tools


config:defer_js

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
config:defer_js [2020-06-03 00:35] – created andiconfig:defer_js [2020-10-09 09:32] – [Configuration Setting: defer_js] Weauz
Line 1: Line 1:
 ====== Configuration Setting: defer_js ====== ====== Configuration Setting: defer_js ======
  
-**Note:** this is a feature flag. For now you can change it'setting, but the setting will be removed in the future and it'default setting will become the permanent behaviour.+**Note:** this is a feature flag. For nowyou can change its setting, but the setting will be removed in the future and its default setting will become permanent behavior.
  
-Since the "Hogfather" release all JavaScript is only executed after all page content has been loaded. This speeds up the initial page load.+Usually, loading of JavaScript files (including big libraries like jQuery) pauses loading and assembling of other page resources (HTML/CSS/media/etc.). This slows down the initial page load, sometimes incredibly slows.
  
-Until all plugins have been adjusted, the behaviour may break the JavaScript of some plugins. If you encounter problems, you can disable the setting to revert to the old, slower behaviour.+Since the "Hogfather" (2020-06-01) release, all JavaScript can be optionally used with a "defer" attribute for independent (asynchronous) loading its files and execution at the end of the assembly of all page resources. This speeds up the initial page load, sometimes incredibly speeds. 
 + 
 +Until all plugins have been adjusted, the behavior may break the JavaScript of some plugins. If you encounter problems, you can disable the setting to revert to the old, slower behavior. Please also create a bug report to the respective plugin developer and refer them to [[devel:javascript]].
  
   * Type: Boolean   * Type: Boolean
-  * Default: ''true''+  * Default: ''false''
  
  
config/defer_js.txt · Last modified: 2022-06-19 12:22 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki