Title: What scripts to exclude from FlyingPress Javascript Delay
Last modified: January 30, 2025

---

# What scripts to exclude from FlyingPress Javascript Delay

 *  Resolved [Swapot](https://wordpress.org/support/users/swapot/)
 * (@swapot)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/what-scripts-to-exclude-from-flyingpress-javascript-delay/)
 * 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 Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * (@inpsydekrystian)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/what-scripts-to-exclude-from-flyingpress-javascript-delay/#post-18276133)
 * Hello [@swapot](https://wordpress.org/support/users/swapot/)
 * When using minification features from third-party solutions, make sure to exclude/
   whitelist at least the JavaScript in this directory:
 *     ```wp-block-code
       /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:
 *     ```wp-block-code
       /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](https://woocommerce.com/document/woocommerce-paypal-payments/#faq-paypal-smart-buttons-not-loading).
   If you continue experiencing issues, please let us know, and we’ll be happy to
   assist further.
 * Kind Regards,
 * Krystian
 *  Thread Starter [Swapot](https://wordpress.org/support/users/swapot/)
 * (@swapot)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/what-scripts-to-exclude-from-flyingpress-javascript-delay/#post-18276503)
 * 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](https://wordpress.org/support/users/swapot/)
 * (@swapot)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/what-scripts-to-exclude-from-flyingpress-javascript-delay/#post-18294689)
 * Hi [@inpsydekrystian](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       /woocommerce-paypal-payments/modules/ppcp-button/assets/js/button.js
       ```
   
 *     ```wp-block-code
       /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](https://wordpress.org/support/users/swapot/)
 * (@swapot)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/what-scripts-to-exclude-from-flyingpress-javascript-delay/#post-18300118)
 * Hello [@inpsydekrystian](https://wordpress.org/support/users/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/_N2jquery.min.jsflexslidersingle-
   product.min.jsslickfunctions.min.jswaypoint
 * In case someone else is trying to solve the same problem.

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

The topic ‘What scripts to exclude from FlyingPress Javascript Delay’ is closed 
to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [paypal](https://wordpress.org/support/topic-tag/paypal/)

 * 4 replies
 * 2 participants
 * Last reply from: [Swapot](https://wordpress.org/support/users/swapot/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/what-scripts-to-exclude-from-flyingpress-javascript-delay/#post-18300118)
 * Status: resolved