Title: Critical Css not generated
Last modified: April 22, 2019

---

# Critical Css not generated

 *  Resolved [sebosiris](https://wordpress.org/support/users/sebosiris/)
 * (@sebosiris)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/)
 * 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/about-nomadic-boys)
   [https://nomadicboys.com](https://nomadicboys.com) [https://nomadicboys.com](https://nomadicboys.com)
   [https://nomadicboys.com/contact-nomadic-boys](https://nomadicboys.com/contact-nomadic-boys)
   [https://nomadicboys.com/itinerary](https://nomadicboys.com/itinerary) [https://nomadicboys.com/our-influencers-network](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: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcritical-css-not-generated%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Thread Starter [sebosiris](https://wordpress.org/support/users/sebosiris/)
 * (@sebosiris)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453348)
 * 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.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453365)
 * Hi,
 * Please check this [wiki](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:troubleshooting:ccss_unstyle)
 * 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,
 *  Thread Starter [sebosiris](https://wordpress.org/support/users/sebosiris/)
 * (@sebosiris)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453421)
 * 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/](https://nomadicboys.com/contact-nomadic-boys/)
   (
   or any other page actually), ccss is not being generated, it shows empty <style
   id=”litespeed-optm-css-rules”></style>
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453450)
 * Hi,
 * Then please enable [advance debug log](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:configuration:debug)
   to your IP and LSCWP [server IPs](https://wp.api.litespeedtech.com/ips)
 * In log there should tell why or what happened as CCSS failed to generates.
 * Best regards,
 *  Thread Starter [sebosiris](https://wordpress.org/support/users/sebosiris/)
 * (@sebosiris)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453451)
 * 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”
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453456)
 * Hi,
 * May I know what option trigger that ?
 * Best regards
 *  Thread Starter [sebosiris](https://wordpress.org/support/users/sebosiris/)
 * (@sebosiris)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453463)
 * 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](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](https://nomadicboys.com&#8217);,‘
   url’ => ‘[https://nomadicboys.com/about-nomadic-boys&#8217](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](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](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](https://nomadicboys.com&#8217);,‘
   url’ => ‘[https://nomadicboys.com&#8217](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](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](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
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453477)
 * Hi,
 * Thanks for the info.
 * It looks like something wrong with CCSS generation server, will have server admin
   to check it out.
 * Best regards,
 *  Thread Starter [sebosiris](https://wordpress.org/support/users/sebosiris/)
 * (@sebosiris)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453526)
 * 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)
 *  [ivankyli](https://wordpress.org/support/users/ivankyli/)
 * (@ivankyli)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453713)
 * Hello, I’m 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 /<path-to-wp>/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.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453901)
 * Hi,
 * Please try again , CCSS server should be fine now.
 * Best regards,
 *  Thread Starter [sebosiris](https://wordpress.org/support/users/sebosiris/)
 * (@sebosiris)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453986)
 * 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](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](https://nomadicboys.com/category/travel-diary/southeast-asia)[
   UA] Mozilla/5.0 (compatible; MJ12bot/v1.4.8; [http://mj12bot.com/](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](https://nomadicboys.com&#8217);,‘
   url’ => ‘[https://nomadicboys.com/category/travel-diary/southeast-asia&#8217](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/](http://mj12bot.com/))’, ‘is_mobile’ => 0, )
 *  Thread Starter [sebosiris](https://wordpress.org/support/users/sebosiris/)
 * (@sebosiris)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11453988)
 * Please also note, I disabled all other plugins until I had only Litespeed only.
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11454039)
 * Hi,
 * Apologize for the inconvenience, checked with server admin , our CCSS server 
   is under heavy load , please try it later.
 * Best regards,
 *  [Damian P.](https://wordpress.org/support/users/damian-p/)
 * (@damian-p)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11505819)
 * .
    -  This reply was modified 7 years, 1 month ago by [Damian P.](https://wordpress.org/support/users/damian-p/).
    -  This reply was modified 7 years, 1 month ago by [Damian P.](https://wordpress.org/support/users/damian-p/).

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Critical Css not generated’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 15 replies
 * 4 participants
 * Last reply from: [Damian P.](https://wordpress.org/support/users/damian-p/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/critical-css-not-generated/#post-11505819)
 * Status: resolved