• Resolved webby1973

    (@webby1973)


    Hello,

    I’m using your plugin “Accept Donations with PayPal & Stripe” together with the Themify Corporate theme, which has an option to defer jQuery for better performance.

    When defer is enabled, I get the error:

    Uncaught ReferenceError: jQuery is not defined

    (at inline script on the page, around the .wpedon-form styles/scripts).
    This happens probably because the plugin adds inline JavaScript that runs before jQuery is loaded.

    Could you update the plugin so that:

    1. It properly declares jquery as a dependency when enqueuing scripts (using wp_enqueue_script with array(‘jquery’)).
    2. All inline scripts are wrapped safely;
    3. Or the inline code is moved to a properly enqueued file that depends on jQuery.

    This would make the plugin compatible with optimization practices and themes that defer jQuery.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Scott Paterson

    (@scottpaterson)

    Hi @webby1973,

    Thanks for opening this ticket. I will look into this and get back to you tomorrow or Sunday.

    Best,
    Scott

    • This reply was modified 4 days, 16 hours ago by Scott Paterson. Reason: spelling
    Plugin Author Scott Paterson

    (@scottpaterson)

    Hi @webby1973,

    Thank you for reporting this issue. I just released version 1.5.5 of the plugin which fixes the jQuery issue.

    Please update your site to that version of the plugin. If you have any other problems or questions, just let me know.

    Best,
    Scott

    Thread Starter webby1973

    (@webby1973)

    Hello @scottpaterson , I installed the new version and it seems to work without all the jQuery errors I had before 🙂 Thank you.

    There’s an odd little issue though (cosmetic, not blocking), but I’ll open a new topic.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.