The Privacy Suite for WordPress

Javascript Delay in WP Rocket and other Caching and Optimization Plugins

Get compliant today in the European Union, United States, Canada, United Kingdom, Australia & South Africa with the only Privacy Suite for WordPress that offers a fully-featured plugin for Worldwide Compliance.

Delay JavaScript Execution improves performance by delaying the loading of all JavaScript files and inline scripts until there is a user interaction (e.g. moving the mouse over the page, touching the screen, scrolling, pressing a key, scrolling with the mouse wheel).  This can be seen as lazy loading for Javascript files but should be used with caution. Always check your website afterwards, if you enable advanced options that modify your javascript files.

Excluding Complianz Javascript

If a problem occurs with Javascript delay in your caching plugins, this is how you exclude Complianz in WP Rocket. Based on the syntax used by your plugin, you’re looking to exclude the complianz.js and complianz.min.js files. For good measure we exclude jQuery as well:

/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
complianz
Example from Complianz’s WP Rocket settings

If you have an exclusion syntax for another caching plugin or want to report a compatibility issue. Please log a support ticket.

Recent articles

The Privacy Suite for WordPress
Get compliant today with the only Privacy Suite made for WordPress

Categories

Popular articles

LGPD Brazil and WordPress

The “Marco Civil” and the Brazilian General Data Protection Law (LGPD) In Complianz 5.4 we will add full support for the Civil Rights Framework for

Read More

Join our mailing list - 8 Tips & Tricks in your inbox over the next 8 weeks!