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.

  • Group non-critical

    Grouping improves pages’ loading speed 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.

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