Scripts settingsAccelerator for WordPress

Scripts are separated into four categories. 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 critical special, 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 critical special

      Enables loading optimization for critical special scripts.

    • 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 of non-critical

      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.

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.

Grouping#

  • Group and combine critical special

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

  • Group and combine 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.

  • Excludes
    • Modules

      Scripts that working as modules will not be processed.

    • Particular scripts

      Scripts with URLs, IDs, or bodies matching the specified regular expressions will not be processed. It can be added multiple expressions at once by placing each on new line.

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.

  • Animation delay

    The timeout for keeping animation corrections after non-critical script are loaded.

  • Scripts loading delay at first scroll

    A delay that allows page effects to run smoothly on the first scroll.

  • 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. It can be added multiple selectors at once by placing each on new line.

  • Exclusions of delayed click

    Tags matching the XPath selectors will be not processed. It can be added multiple selectors at once by placing each on new line.

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. It can be added multiple expressions at once by placing each on new line.

Critical special#

Scripts with URLs, IDs, or internal bodies matching the specified regular expressions will be treated as critical special. It can be added multiple expressions at once by placing each on new line.

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. It can be added multiple expressions at once by placing each on new line.

  • Include only

    Only scripts with URLs, IDs, or internal bodies matching the specified regular expressions will be treated as non-critical. It can be added multiple expressions at once by placing each on new line.

Special#

Scripts with URLs, IDs, or internal bodies matching the specified regular expressions will be treated as special. It can be added multiple expressions at once by placing each on new line.

Not needed#

Scripts with URLs, IDs, or internal bodies matching the specified regular expressions will not be loaded. It can be added multiple expressions at once by placing each on new line.

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. It can be added multiple selectors at once by placing each on new line.

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

Leave a Reply