Home Forums WoodMart support forum Combine CSS (WP Rocket)…. or not.

Combine CSS (WP Rocket)…. or not.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #349212

    ToriTori38
    Participant

    Hi there,

    We have a very large css file loading on each page which comes from WPBakery: /wp-content/uploads/2021/05/js_composer-1622034790.css (over 300kb). This file is obviouly quite large because we choose to “combine CSS” in WP Rocket settings. However this makes no sense, as some pages we use very little from WPBakery so should not load all that CSS on each page load. We also have https/2.

    Is there a way to improve this and not load 300kb of WPBakery CSS on every page? For example if we do not use “combine css” in WP Rocket settings, then only individual CSS files will be loaded. If you say that your theme only loads css files which are required on that page, surely then the css files loaded on each page will be much less than 300kb?

    Thanks for your explanation.

    #349220

    ToriTori38
    Participant

    Actually I see that WP Rocket has no influence on the /wp-content/uploads/2021/05/js_composer-1622034790.css file. It still loads even if we disable WP Rocket’s “combine CSS files”.

    So I guess the only way to reduce this css file size is to use less of the WPBakery elements and then re-save the CSS file in the CSS generator?

    Thanks

    #349312

    Artem Temos
    Keymaster

    Hello,

    Yes, this file size depends on the number of WPBakery elements you use. There are no other ways to reduce its size, unfortunately.

    Kind Regards

Viewing 3 posts - 1 through 3 (of 3 total)