Critical css




Wordpress LScache Plugin: Critical css

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, Is it possible to exclude page, or url of this process ? For my pages showing products, I use a quick view plugin which display a button over product image only when mouse is over it. With critical css activated, when page is loaded, this button does not appear for the first part of the page. It appears when we scroll down below (below the fold probably?). Is there a way to solve this issue, and if not, I wonder if its possible to select on which page we want to use critical css ? Thanks a lot for any ideas. best regards Hi, please try enable the per URI CCSS, see if it helps some times , pages with different CSS shared same CCSS rule and it could cause some display issue if that doesnt work , to bypass CCSS for certain page add this to your wp-config.php if (strpos($_SERVER[REQUEST_URI], my-page ) !== false) define( LITESPEED_CONF, true ) define( LITESPEED_CONF__OPTM__CSS_ASYNC, false) change my-page to your URL , partial match is allowed Best regards, Hi, Thanks a lot for your quick answer. Concerning your fist advice, I tried to add /categorie-produit/ in the per URI CCSS (this is the top directory of my product categories): it does not work. With this, css for the quick view plugin is not include in CCSS and is only loaded when we scroll for reaching products of the second page (infinite scroll is active). This behavior is perfectly logic. So, Im going to try your second advice in wp-config. Thanks and have a good day. Best regards Hi, Did you click purge all critical css and then purge all ? if you dont clean up current CCSS , it wont trigger the re-generation Best regards, Problem solved with your help, thanks !



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference