CSS exclude does not work
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 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.
@ChamaleeS bump
@ChamaleeS since no reply, we will close this topic. If further assistance is needed, please respond here.