Title: How to exclude RCB Javascript for Caching
Last modified: April 28, 2025

---

# How to exclude RCB Javascript for Caching

 *  Resolved [xadres](https://wordpress.org/support/users/xadres/)
 * (@xadres)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-rcb-javascript-for-caching/)
 * Hello,
 * how can I exclude all relevant JS files of Real Cookie Banner to put them on 
   a whitelist for WP Rocket to use delayed JavaScript execution?
   Currently RCB 
   is not loaded completely and is sliding into view after the first user interaction(
   scroll/click).
 * Which JS file needs to be whitelisted?

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

 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-rcb-javascript-for-caching/#post-18439419)
 * Hey [@xadres](https://wordpress.org/support/users/xadres/) !
 * Are you using the PRO or free version of Real Cookie Banner?
 * In general, this should already be implemented by us programmatically: [https://plugins.trac.wordpress.org/browser/real-cookie-banner/trunk/vendor/devowl-wp/cache-invalidate/src/caches/WpRocketImpl.php#L41](https://plugins.trac.wordpress.org/browser/real-cookie-banner/trunk/vendor/devowl-wp/cache-invalidate/src/caches/WpRocketImpl.php#L41)
 *  Thread Starter [xadres](https://wordpress.org/support/users/xadres/)
 * (@xadres)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-rcb-javascript-for-caching/#post-18439518)
 * I am using PRO version. Parts above the consent buttons are displayed. The buttons
   show after first interaction. Its not working properly on mobile. On Desktop,
   everything is fine.
 * Affected site: [https://wood-master-werther.de](https://wood-master-werther.de)
 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-rcb-javascript-for-caching/#post-18440943)
 * Hi again [@xadres](https://wordpress.org/support/users/xadres/) !
 * Unfortunately the WordPress.org forum guidelines do not allow to provide support
   for PRO users. Please open a support ticket via [https://devowl.io/de/support](https://devowl.io/de/support).

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

The topic ‘How to exclude RCB Javascript for Caching’ is closed to new replies.

 * ![](https://ps.w.org/real-cookie-banner/assets/icon-256x256.png?rev=2419813)
 * [Real Cookie Banner: GDPR & ePrivacy Cookie Consent](https://wordpress.org/plugins/real-cookie-banner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/real-cookie-banner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/real-cookie-banner/)
 * [Active Topics](https://wordpress.org/support/plugin/real-cookie-banner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/real-cookie-banner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/real-cookie-banner/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/how-to-exclude-rcb-javascript-for-caching/#post-18440943)
 * Status: resolved