I tried disabling and enabling aggregate inline CSS and JS.
There isn’t any difference.
I added the following codes to theme too
add_action( ‘wcdn_head’, ‘test_reset_css_shipping’, 20 );
add_filter(‘autoptimize_js_include_inline’,’support_ao_js_include_inline’,10,1);
function support_ao_js_include_inline() {
return false;
}
add_filter(‘autoptimize_css_include_inline’,’support_ao_css_include_inline’,10,1);
function support_ao_css_include_inline() {
return false;
}
Sorry, wrong measurement.
It’s CSS at 1.6mb
JS at 2.37mb
All those healthy values?
It does increase after using the website for a while.
The message “Autoptimize’s cache size is getting big, consider purging the cache.” remains all the itme
4MB is totally fine, but this
It’s CSS at 1.6mb
JS at 2.37mb
and this
The message “Autoptimize’s cache size is getting big, consider purging the cache.” remains all the itme
in theory (as per the code) cannot happen simultaneously as the warning is only shown as approx. half a GB.
I suspect that before you excluded inline JS (and CSS) you did have cache-size problems, which got fixed by excluding inline code (the filters do the same thing and so are useless really) and that the “warning”-flag failed to clear causing the error to keep on being visible. To fix this go to wp-admin/options.php, look for autoptimize_cachesize_notice on that screen, remove the value for it and click on “save” at the bottom of the screen.
hope this helps,
frank