Skip to main content

Production Optimisation

Comments

4 comments

  • Alex

    Hi,

    I would love to help but we cannot do this. All files in Brizy are required and we can't provide you with a code that would remove any of them. You do any optimization or code modification on your own. Sorry about that :/

    0
  • PAUL RAMOTOWSKI

    I am talking about the wordpress plugin. It's a totally private website that has nothing to do with Brizy Cloud. Not sure why you can't help me simply remove these CSS files. I am fully aware that this could break the site, so I'll be testing it on a staging site first.

    If you cannot help me remove them, can you at least provide me with some understanding of how you're enqueueing them?

    Are you using 'wp_enqueue_scripts' and do I have the names correct ('brizy-preview' & 'brizy-pro-preview') for these two files

    wp-content/plugins/brizy/public/editor-build/170-wp/editor/css/preview.css

    wp-content/plugins/brizy-pro/public/editor-build/55-wp/css/preview.pro.css

    Thanks,

    0
  • Alex

    Hi Paul,

    try to use the following code:

    function remove_unused_css() {

        wp_dequeue_style( 'brizy-preview' );

        wp_dequeue_style( 'brizy-pro-preview' );

    }

    add_action( 'wp_enqueue_scripts', 'remove_unused_css', 10001 );

    0
  • Piotr Rewucki

    Paul, would you be so kind and share the results? I recently came across the same problem - my SI is very poor and one reason are those css.

    Have you managed to remove them and speed up your site?

    Thanks!

    0

Please sign in to leave a comment.