Wordpress LScache Plugin: ReferenceError loadCSS is not defined
Last Updated on: Wed, 15 Apr 2026 00:00:02 Whenever I enable Load CSS Asynchronously I get this error on all major browsers. ReferenceError loadCSS is not defined It doesnt solve even when I disable these functions: 1. Load CSS Asynchronously 2. Generate Critical CSS 3. Generate Critical CSS In Background 4. Inline CSS Async Lib However, there is a solution that I have to disable those functions and exclude these css: /wp-content/plugins/woocommerce/assets/css/photoswipe/photoswipe.min.css /wp-content/plugins/woocommerce/assets/css/photoswipe/default-skin/default-skin.min.css But, I want dont want to disable them because it improves the pagespeed. So, please fix that soon. Hi, Please check enable these 1-4 , and disable CSS minify , CSS combine , purge all , and see how it goes. Best regards, Well if I disable CSS minify, CSS combine then my pagespeed will be worst. So, I cant do that! Its better I do as I am doing. Hi, Well that is not a solution but a test , to determinate where exactly the issue was coming from. Best regards, Is this fixed on todays update? Yesterday, it was alright when I only disabled those 4 features. 1. Load CSS Asynchronously 2. Generate Critical CSS 3. Generate Critical CSS In Background 4. Inline CSS Async Lib I performed lots of tests disabling cdn. But I had no other choice than disabling Load CSS Asynchronously. I will check again now to see if you have fixed this problem. Finally, the problem is fixed. I had to keep Load Inline JS in default . It was on after DOM ready so that created the problem. This issue is solved now! @CacheCrawler I am experiencing the same problem, you can check it here: https://digitallpost.com.mx/deportes/sin_publico_el_futbol_no_tiene_sentido_dice_juan_villoro/ I already disabled and enabled what you suggested, even excluded the css files that are being LoadCSSd in the tuning section but nothing is helping. What else can I do? What I did is: 1. Removed OpenLiteSpeed from my server. 2. Installed Caddy 2 3. Removed LiteSpeed cache plugin with lots of heavy records on database. 4. Installed SuperCache with Autoptimize. 5. Now its fine.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference