• Resolved benoitfouc

    (@benoitfouc)


    Hello there, i’m not using WC Blocks (cause my theme use an other builder) so i’m using this function since many years :

    
    function dequeue_useless_styles_scripts() {
                wp_dequeue_style( 'wp-block-library' );
                wp_dequeue_style( 'wp-block-library-theme' );
                wp_deregister_style( 'wc-block-editor' );
        wp_deregister_style( 'wc-blocks-style' );
                wp_dequeue_style( 'wc-blocks-style' );
    }
    add_action( 'wp_enqueue_scripts', 'dequeue_useless_styles_scripts', 99 );

    That was working good since… the last update of the plugin. I update WooCommerce to the 8.0 version, that update WC Blocks to his last release and now all css files are loaded on my website and make it so slow.
    Is there an other function to unregister files ? or is this a bug ?

    • This topic was modified 1 year, 3 months ago by benoitfouc. Reason: add code
    • This topic was modified 1 year, 3 months ago by benoitfouc.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dequeue styles files not working’ is closed to new replies.