Critical Css not generated




Wordpress LScache Plugin: Critical Css not generated

Last Updated on: Wed, 15 Apr 2026 00:00:02
Dear Litespeed Cache team, LiteSpeed plugin does not want to generate critical Css. I currently have the option generate critical css in the background and it has created a queue for instance: URL list in queue waiting for cron https://nomadicboys.com/about-nomadic-boys https://nomadicboys.com https://nomadicboys.com https://nomadicboys.com/contact-nomadic-boys https://nomadicboys.com/itinerary https://nomadicboys.com/our-influencers-network . When I try to run the queue manually , it returns the error message: Failed to post via WordPress: Please try later . However, very rarely, if I keep on clicking on the button, sometimes it works randomly and it generates CCSS. I also tried to just select the option to generate critical css in the foreground, and it does not work either. I have a debug log file for you, let me know who to send it to. To be clear, all the following options are active: Load CSS Asynchronously Generate Critical CSS Generate Critical CSS In Background Separate CCSS Cache Post Types ( page ) Best regards Sebastien The page I need help with: https://nomadicboys.com Also, the last time ccss was generated was on 20/04/2019, which was when I was playing with it and decided to activate it. I had the same problem when testing but then after clicking a few times on run the queue manually , it did work once. Hi, Please check this wiki Bascially if you set generation in background, once it generated, you will need to purge the page cache , to generate new page cache to insert the rule. Best regards, Thank you, but as I explained in my first post, even when the option to create ccss in the foreground is selected, ccss does not seem to be generated, FOUC still happens after visiting the page more than once, why is this? Check out this page: https://nomadicboys.com/contact-nomadic-boys/ (or any other page actually), ccss is not being generated, it shows empty Hi, Then please enable advance debug log to your IP and LSCWP server IPs In log there should tell why or what happened as CCSS failed to generates. Best regards, Also, whenever I click on one of the menu options under Litespeed plugin, I get the following error message: Failed to post via WordPress: Please try later Hi, May I know what option trigger that ? Best regards I have the debug log file already: 04/22/19 10:15:01.875 [109.110.246.162:64422 1 lZy] [CSS] cron job [type] page-3efaa37937e376df90103b0a905a13cc [url] https://nomadicboys.com/about-nomadic-boys [UA] Mozilla/5.0 (X11 Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36 Google Favicon 04/22/19 10:15:01.879 [109.110.246.162:64422 1 lZy] [CSS] Generating: ? array ( home_url => https://nomadicboys.com&#8217 , url => https://nomadicboys.com/about-nomadic-boys&#8217 , ccss_type => page-3efaa37937e376df90103b0a905a13cc, user_agent => Mozilla/5.0 (X11 Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36 Google Favicon, is_mobile => 0, ) 04/22/19 10:15:01.880 [109.110.246.162:64422 1 lZy] [IAPI] posting to : https://us.wp.api.litespeedtech.com/ccss 04/22/19 10:15:01.943 [109.110.246.162:64422 1 lZy] [IAPI] failed to decode post json: Please try later 04/22/19 10:15:01.945 [109.110.246.162:64422 1 lZy] [CSS] empty ccss 04/22/19 10:15:01.945 [109.110.246.162:64422 1 lZy] [CSS] cron job [type] default [url] https://nomadicboys.com [UA] Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36 04/22/19 10:15:01.945 [109.110.246.162:64422 1 lZy] [CSS] Generating: ? array ( home_url => https://nomadicboys.com&#8217 , url => https://nomadicboys.com&#8217 , ccss_type => default, user_agent => Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36, is_mobile => 0, ) 04/22/19 10:15:01.946 [109.110.246.162:64422 1 lZy] [IAPI] posting to : https://us.wp.api.litespeedtech.com/ccss 04/22/19 10:15:05.083 [109.110.246.162:64422 1 lZy] [IAPI] failed to decode post json: Please try later 04/22/19 10:15:05.084 [109.110.246.162:64422 1 lZy] [CSS] empty ccss 04/22/19 10:15:05.084 [109.110.246.162:64422 1 lZy] [CSS] cron job [type] search [url] https://nomadicboys.com [UA] Mozilla/5.0 (Windows NT 10.0 WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36 Hi, Thanks for the info. It looks like something wrong with CCSS generation server, will have server admin to check it out. Best regards, the option Failed to post via WordPress: Please try later is triggered when I try to run the critical css queue manually (when the option critical css is generated in the background) Hello, Im also facing a problem with critical CSS generation currently. The advanced logs contain this line: ` 04/22/19 11:15:25.295 [:39996 1 H91] [CSS] saved ccss //wp-content/cache/ccss/page-11068bc73d0ccf4c3330dda4436d0e50.css 04/22/19 11:15:25.295 [:39996 1 H91] [CSS] ccss con: / null / ` All pages / posts have same behaviour. Hi, Please try again , CCSS server should be fine now. Best regards, Hi, The problem still persists, I am getting the same message for all URLs: 04/22/19 13:49:53.737 [109.110.246.162:60367 1 oor] [IAPI] posting to : https://us.wp.api.litespeedtech.com/ccss 04/22/19 13:49:53.789 [109.110.246.162:60367 1 oor] [IAPI] failed to decode post json: Please try later 04/22/19 13:49:53.791 [109.110.246.162:60367 1 oor] [CSS] empty ccss 04/22/19 13:49:53.791 [109.110.246.162:60367 1 oor] [CSS] cron job [type] category [url] https://nomadicboys.com/category/travel-diary/southeast-asia [UA] Mozilla/5.0 (compatible MJ12bot/v1.4.8 http://mj12bot.com/) 04/22/19 13:49:53.791 [109.110.246.162:60367 1 oor] [CSS] Generating: ? array ( home_url => https://nomadicboys.com&#8217 , url => https://nomadicboys.com/category/travel-diary/southeast-asia&#8217 , ccss_type => category, user_agent => Mozilla/5.0 (compatible MJ12bot/v1.4.8 http://mj12bot.com/), is_mobile => 0, ) Please also note, I disabled all other plugins until I had only Litespeed only. Hi, Apologize for the inconvenience, checked with server admin , our CCSS server is under heavy load , please try it later. Best regards, . . .



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



Reference