• Resolved marxmann

    (@marxmann)


    According to Stripe, I need to exclude jQuery from deferred scripts

    How do I do this, they provide no instruction:

    Field to Enter Credit Card Information Does Not Load?
    If, on the Checkout page, the field to enter credit card info does not load when using Stripe, the most likely cause is a jQuery conflict. Our Stripe payment gateway plugin requires jQuery to be loaded first before our scripts are loaded. When you load scripts via async, this order is not preserved. As such, you should exclude jQuery from deferred scripts, and everything will be back to normal.
    
    In fact, loading scripts via async does not have much effect on your site as all our scripts are loaded in your website's footer after the main website content has been loaded anyway.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @marxmann

    Thank you for reaching out and I am happy to assist you with this.
    There are two things you can do. The first one is to exclude the page you are having issues with in Performance>Minify>Advanced>”Never Minify following pages”
    for example /checkout/
    You can exclude the jquery file by adding the path to the jQuery file to Performance>Minify>Advanced>”Never Minify following JS files”
    /wp-includes/js/jquery/jquery.min.js
    Make sure to save all settings and purge the cache.
    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘How to exclude jQuery from deferred scripts’ is closed to new replies.