lscache_wp icon indicating copy to clipboard operation
lscache_wp copied to clipboard

CSS exclude does not work

Open ChamaleeS opened this issue 7 months ago • 2 comments

Hi, when CSS Combine is enabled, the testimonial carousel on my website disappears, and the theme's primary background color changes. There is no issue with JavaScript. I tried excluding all CSS files as instructed in the LiteSpeed troubleshooting tutorial: https://docs.litespeedtech.com/lscache/lscwp/ts-optimize/

However, even after excluding all CSS files and purging all caches, the problems still persist. It seems the plugin does not properly process the CSS files listed in the CSS Exclude section.

After disabling the Combine CSS option, the website looks fine without any issues.

But I would like to use all CSS optimization options including Combine CSS to improve my website speed. How can I resolve this issue?

Thanks in advance.

ChamaleeS avatar Apr 18 '25 21:04 ChamaleeS

@ChamaleeS We are sorry for the problem you face.

I created a test site and tested the following setup:

  • 2025 theme
  • loaded 2 css files
  • enabled combine
  • tested the sites, looks as expected
  • added 1 of the file to CSS Exclude
  • combined CSS appears and my 1 file excluded appears separate
  • checked the combined CSS and it does not contain the CSS inline

Maybe is a position loading issue: excluded loads after combined CSS. Try clearing Purge All - LSCache too.

I would test how https://docs.litespeedtech.com/lscache/lscwp/pageopt/#generate-ucss is working. Test on homepage and if is working, leave it running for all pages.

timotei-litespeed avatar Apr 19 '25 05:04 timotei-litespeed

@ChamaleeS bump

timotei-litespeed avatar May 12 '25 18:05 timotei-litespeed

@ChamaleeS since no reply, we will close this topic. If further assistance is needed, please respond here.

timotei-litespeed avatar Jul 03 '25 11:07 timotei-litespeed