DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

config:defer_js

This is an old revision of the document!


Configuration Setting: defer_js

Note: this is a feature flag. For now, you can change its setting, but the setting will be removed in the future and its default setting will become permanent behavior.

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.

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 javascript.

  • Type: Boolean
  • Default: false

See also

config/defer_js.1597148255.txt.gz · Last modified: 2020-08-11 14:17 by Proj20IHK