• Resolved swapot

    (@swapot)


    Hi,

    I use FlyingPress for site speed optimizations and when I turn on its Delay Javascript feature it significantly speeds up the site, but it seems to break PayPal payments, at least on the single product pages (paypal buttons disappear).

    What scripts of the PayPal Payments plugin do I need to exclude so that I can use this feature, but not break PayPal Payments?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @swapot

    When using minification features from third-party solutions, make sure to exclude/whitelist at least the JavaScript in this directory:

    /woocommerce-paypal-payments/modules/ppcp-button/assets/js/button.js

    These additional directories could be whitelisted as well if any issues persist while using site optimizations:

    /woocommerce-paypal-payments/modules/ppcp-vaulting/assets/js/myaccount-payments.js
    /woocommerce-paypal-payments/modules/ppcp-wc-gateway/assets/js/oxxo.js
    /woocommerce-paypal-payments/modules/ppcp-wc-gateway/assets/js/pay-upon-invoice.js
    /woocommerce-paypal-payments/modules/ppcp-wc-gateway/assets/js/gateway-settings.js

    This is also a part of our documentation here. If you continue experiencing issues, please let us know, and we’ll be happy to assist further.

    Kind Regards,

    Krystian

    Thread Starter swapot

    (@swapot)

    Hi Krystian,

    Thank you for the fast reply. Yes, that was what I was looking for. I did check the documentation, but didn’t think to look in the FAQs.

    Much appreciated.

    Thread Starter swapot

    (@swapot)

    Hi @inpsydekrystian ,

    I am using the FlyingPress plugin for site speed (caching) optimization, and in particular, the setting to Delay Javascript. I want to delay all Javascript, and I have added these to be excluded:

    /woocommerce-paypal-payments/modules/ppcp-button/assets/js/button.js
    /woocommerce-paypal-payments/modules/ppcp-vaulting/assets/js/myaccount-payments.js/woocommerce-paypal-payments/modules/ppcp-wc-gateway/assets/js/oxxo.js/woocommerce-paypal-payments/modules/ppcp-wc-gateway/assets/js/pay-upon-invoice.js/woocommerce-paypal-payments/modules/ppcp-wc-gateway/assets/js/gateway-settings.js

    However, on my product pages, the PayPal payment button is missing. Is there another script that I need to exclude?

    Thread Starter swapot

    (@swapot)

    Hello @inpsydekrystian ,

    I didn’t hear back, but I got this solved by Gijo, the developer of FlyingPress. This is what I needed to have added as exclusions to delaying all javascript (by the plugin):

    ppcp
    /woocommerce-paypal-payments/
    /nextend-smart-slider3-pro/
    _N2
    jquery.min.js
    flexslider
    single-product.min.js
    slick
    functions.min.js
    waypoint

    In case someone else is trying to solve the same problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.