Scripts settingsAccelerator for WordPress

Scripts are separated into three categories:

  • Critical

    It must be loaded before the main page content.

  • Non-critical

    It can be loaded after main page content with delay as well.

  • Special

    Some special scripts (tracking, advertising, etc.) that can be loaded after main page content and after non-critical scripts with additional delay as well.

In most cases all scripts are non-critical and some are special as you can see by default settings. But sometimes particular scripts should be tuned individually.

settings-Scripts

General#

  • Optimize loading non-critical and special

    Enables loading optimization mode. Timeouts below are periods of user inactivity – no scroll, mouse move, etc. If the timeout is 0 then scripts will be only placed at the bottom of the page (just before the body closing tag). If the timeout is 1000 then it will be treated as infinity.

    • Defer non-critical

      Enables loading optimization for non-critical scripts and delays it with the specified timeout.

    • Defer special after non-critical

      Enables loading optimization for special scripts and delays it with the specified timeout.

      Note: if this is off, then all special scripts are considered non-critical.

    • Deep hooks

      Using deep scripts injection to make delay loading.

    • Early preloading

      Preloads scripts to be faster executed later.

    • Fast loading

      It improves scripts’ loading speed a little bit but might be incompatible with some scripts. So, it should be used carefully.

  • Group non-critical

    Grouping improves pages’ loading speed but might be incompatible with some scripts. So, it should be used carefully.

    Note: if ‘Defer special after non-critical’ is disabled, then all special scripts will also fall into this group.

Note. Special scripts are always loaded after non-critical. E.g. if deferring is disabled for special but non-critical are deferred, so special will be deferred too.

Lazy interactions#

If scripts are delayed then all clicks and touches are processed instantly and delayed. But sometimes there is a need to prevent from instant or delayed reaction.

  • First click delay

    The timeout for loading the main scripts when clicking on an interactive element. Allows to correct situations when a click does not work the first time.

  • Exclusions of instant click

    Tags matching the XPath selectors will be not processed.

  • Exclusions of delayed click

    Tags matching the XPath selectors will be not processed.

Minify#

  • Enable

    Optimizes JS code to have a smaller size but preserves any copyright information in comments.

  • Remove copyright information

    Removes all comments from JS code.

  • Excludes

    Scripts with URLs, IDs, or internal bodies matching the specified regular expressions will not be processed.

Non-critical#

  • Inlined

    Includes all inline scripts.

  • Internal

    Includes all internal (hosted on our site) scripts.

  • External

    Includes all external (hosted on the other sites) scripts.

  • Exclude

    Scripts with URLs, IDs, or internal bodies matching the specified regular expressions will be treated as critical.

  • Include only

    Only scripts with URLs, IDs, or internal bodies matching the specified regular expressions will be treated as non-critical.

Special#

Scripts with URLs, IDs, or internal bodies matching the specified regular expressions will be treated as special.

Not needed#

Scripts with URLs, IDs, or internal bodies matching the specified regular expressions will not be loaded.

Treat as scripts#

Some scripts might be loaded not via the script tag, e.g. iframe one. So, tags matching the specified XPath selectors will be treated as scripts and processed by other script settings excluding the source’s body.

Note. Specified iframe tags are automatically excluded from Video and frames.

Leave a Reply