• Resolved Skrlance

    (@seanlance)


    Whenever I enable Load CSS Asynchronously I get this error on all major browsers.

    ReferenceError loadCSS is not defined

    It doesn’t 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 don’t want to disable them because it improves the pagespeed. So, please fix that soon.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Please check enable these 1-4 , and disable CSS minify , CSS combine , purge all , and see how it goes.

    Best regards,

    Thread Starter Skrlance

    (@seanlance)

    Well if I disable CSS minify, CSS combine then my pagespeed will be worst. So, I can’t do that! It’s better I do as I am doing.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Well that is not a solution but a test , to determinate where exactly the issue was coming from.

    Best regards,

    Thread Starter Skrlance

    (@seanlance)

    Is this fixed on today’s 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.

    Thread Starter Skrlance

    (@seanlance)

    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!

    @qtwrk 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 LoadCSS’d in the tuning section but nothing is helping.

    What else can I do?

    Thread Starter Skrlance

    (@seanlance)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘ReferenceError loadCSS is not defined’ is closed to new replies.