Minify JS issue with Colibri Page Builder

[ad_1]

Hi @eugene212,

Thanks for using Powered Cache.

Have you tried to exclude Colibri Page Builder’s assets in the exclude section?

Excluding all Colibri Page Builder JS assets does not help…
But switching off Minify JS helps – Colibri page editing screen reverts to the expected state/view.

It is possible to get around by temporarily disabling Minify JS while editing pages, but it would not be the desired way.

Could you try this snippet:

add_action( 'plugins_loaded', function () {
if ( is_user_logged_in() ) {
add_filter( 'powered_cache_fo_disable', '__return_true' );
add_filter( 'powered_cache_fo_disable_css_combine', '__return_true' );
add_filter( 'powered_cache_fo_disable_css_minify', '__return_true' );
add_filter( 'powered_cache_fo_disable_js_combine', '__return_true' );
add_filter( 'powered_cache_fo_disable_js_minify', '__return_true' );
}
},999 );

Basically, it disables the file optimizer for logged-in users. If the Colibri Page Builder sets a custom query string, you can customize the snippet for that too. Unfortunately, I’m unable to test it since it’s a premium plugin

Yes, the snippet fixes the issue, thank you !

Also I believe that Colibri Theme comes with the free Colibri Page Builder (i.e. not Pro – with limited functionality), so you may consider trying it for your tests.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer