Change the background of body preloader generated from critical css




Wordpress LScache Plugin: Change the background of body preloader generated from critical css

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello! The body element gets styled with the background color #111 when load CSS asynchronously is activated. It only happens when Generate Critical CSS is turned ON. This is the css that is getting added: .preloader, body background-color: #111 It is added in the inside . This turned my background black. I solved it by adding my own background css to the body, because my stylesheet did not have that. Now the question is: Is it possible to change the color of this preloader? A flash of black to white is not nice to look at. Hi, As far as I know , the CCSS generator should not add additional CSS , it only view your site , grab the CSS that used to render page viewport ,and then send it back to LSCWP to insert. Could you please check if your original CSS have such coloring ? Best regards, There is no such CSS-rule in my styles.css-file. But maybe it gets pulled from a plugin? Hi, What if you do full-text-search on all plugins and themes files, if you got #111 anywhere ? Best regards, There are two plugins that have #111 in their code. One of them has it in the backend files. I cant say that I understand why one of those should be loaded in the CCSS. Anyway, it worked by adding the color myself and I dont think its worth troubleshooting this timewise. Hi, Well , like I said early CCSS generator will visit your site as a real visitor , then grab whatever CSS it sees in view port , and then send back to you to insert So maybe somehow that CSS is inserted by your plugin(s) and algo grabbed by CCSS generator Best regards,



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



Reference