• We use your free plugin. With Perfmatters plugin we delay all JavaScripts. But your plugin is generating the following error in the Developer Tools -> Console, due to sloppy added js code:

    Uncaught TypeError: jQuery is not a function VM958:2 at <anonymous>:2:5 at (index):1270:4401 at new Promise (<anonymous>) at pmReplaceScript ((index):1270:4093) at async pmLoadDelayedScripts ((index):1270:3964) at async HTMLDocument.pmTriggerDelayedScripts ((index):1270:853)

    Would be great if you could fix your code that depends on jQuery and the jQuery library to resolve this error.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mihai Joldis

    (@misulicus)

    Hi @dragan30

    It appears that the cause that you mentioned is not coming from the EDD core. We can see it in the page source and that seems to be added as custom code directly to the site or perhaps via another plugin?

    That code block should perhaps add jQuery as a dependency as well to make sure it runs when jQuery is loaded. The Console tool also mentions that Uncaught TypeError: jQuery is not a function. which means jQuery is not running when that code is executed.

    Try checking for any custom code or any other plugin that could be adding that functionality to see how it’s added.

    Thread Starter imiblockchain.com

    (@dragan30)

    Fair enough, thanks! We did an in-depth search now and had to find out that the following add-on is causing the error:

    https://github.com/awesomemotive/edd-add-to-cart-redirect

    Therefore, you are right. It’s not coming from EDD core. Please close this ticket.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sloppy added js code’ is closed to new replies.