• Resolved faelmarcondeli

    (@faelmarcondeli)


    Hi,

    I’m Getting this error on activate combine and defer JS for this archive:

    /wp-content/plugins/gtm-kit/assets/integration/woocommerce.js?ver=1.16.2

    Apparently is missing some declaration.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • morvy

    (@morvy)

    As you can see on your screenshot, code that requires jQuery is executed before LS loads delayed scripts. Set jQuery as an exception so it’s not delayed and the error should be gone.

    Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    as @morvy has pointed out the problem is that JQuery is not executed before woocommerce.js. The script woocommerce.js is actually enqueued with jQuery as a dependency and i don’t know why Litespeed is not respecting that.

    This i is likely a Litespeed problem but I will investigate it: https://github.com/tlamedia/gtm-kit/issues/326

    For now you should exlcude jQuery as sugested above.

    Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    @faelmarcondeli I have tested GTM Kit with the Litespeed plugin but I don’t have access to a Litespeed server and I have not been able to reproduce your problem.

    Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    @faelmarcondeli?Have you tried excluding jQuery as sugested?

    Plugin Author Torben Lundsgaard

    (@torbenlundsgaard)

    Closing this as resolved

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error JS on Litespeed Server’ is closed to new replies.