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.