Message from Google: Remove unused CSS!




Wordpress LScache Plugin: Message from Google: Remove unused CSS!

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, I got this big css file (minified by LSCache Plugin) that Google asks me to remove (Remove Unused CSS by https://web.dev/measure) The file is here: https://centrum.auto.pl/min/3f3fc.css I tried to do it with the help of this site https://jonassebastianohlsson.com/criticalpathcssgenerator/ (wanted to put the full content of min/3f3fc.css file into the generator in step 2 and create the Critical Path in step 3). But this file is too big and even if I was able to generate the critical code I wouldnt know where to put such generated path inside the settings of LSCache Plugin? Do you have any advice on how to deal with this problem? Maybe a step by step instruction which I could not find around your blog/site would help others with the same? With the hope for help, Best regards, Greg The page I need help with: https://centrum.auto.pl Hi, These are original CSS from your theme/site , LSCWP just combined it. In future release, as v3.0 , there should be a feature to address this remove unused CSS issue. Best regards, Thank you! Im looking forward to it. BTW: Will you consider to add a step by step instruction on how to deal with this kind of problem with LS Cache and what to do when the css file is too big to generate the critical path at once? Will you also consider making the same when Google screams: Reduce JavaScript execution time!? Regards, Greg Hi, What do you mean by too big to generate the critical path at once? ? Reduce JavaScript execution time Im afraid this case LSCWP can not help , best thing it can do about it is defer it , you have to remove the unneeded/unused javascript yourself, LSCWP can not determinate which/what JS is needed or no needed. Best regards, Thank you. Too big? when a css file is even too big to generate the critical path here: https://jonassebastianohlsson.com/criticalpathcssgenerator/?just to consider the option. BTW: This file https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js is a render-blocking resource. I check in LS Cache Plugin to deliver it from Google CND and put into function.php this code: add_action( wp_enqueue_scripts, register_jquery ) function register_jquery() wp_deregister_script( jquery ) wp_register_script( jquery, ( https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js&#8217 ), false, null, true ) wp_enqueue_script( jquery ) But Google still screams to eliminate this resource. Can you point me what else can I do with it? Regards, Greg Hi @gregywordpress, our plugin will not modify your function.php, but we do have an option to load jQuery from CDN instead of a local source. If you want to stop it you can try these options on LiteSpeed Cache plugin: CDN > Load JQuery Remotely [OFF] Optimize > Load JS Deferred [ON] Optimize > Exclude jQuery [OFF] But it may not safe to load jQuery asynchronously, please test through the pages to see are there any JS error.



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



Reference