Can I dequeue gutenberg block css?

Hi again,

Sorry for many posts in recent time. New user to cwicly so will need some help. I don’t use the default gutenberg blocks and I dequeu gutenberg block css by the below code. Will this affect cwicly in any way?

function improve_performance(){
 wp_dequeue_style( 'wp-block-library' ); // Remove gutenberg styles
 wp_dequeue_style( 'global-styles' ); // Remove gutenberg inline css
 wp_dequeue_style( 'wc-blocks-style' ); // Remove woocommerce block styles
 remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' ); // Remove inline gutenberg svg filters
add_action( 'wp_enqueue_scripts', 'improve_performance', 9999 );

I realize the same options are there in the Cwicly settings under optimization tab.

1 Like