5
100K
42K
0
23 October 2024
27 February 2020
Based on 5 on WordPress.org
async
).script_loader_tag
filter for scripts that are concatenate-able but have no neighbors to concatenate with. This fixes a case where the TwentyTwenty theme wanted to apply a defer
attribute to its script but was never given the opportunity.This plugin uses sensible defaults so it can operate without configuration, but there are a number of constants you may use for a custom configuration.
Page Optimize caches concatenated scripts and styles by default, and this constant controls where the cache files are stored. The default directory is cache/page_optimize
under your site’s wp-content
folder.
To change the cache location, set this constant to the absolute filesystem path of that location.
To disable caching, set this constant to false
. Please note that disabling Page Optimize caching may negatively impact performance unless you are caching elsewhere.
Page Optimize has CSS Minification capabilities which are off by default.
If you’re using caching, and not minifying CSS elsewhere, it is recommended to enable it by setting it to true
.