LiteSpeed Cache is a popular WordPress caching plugin which optimizes external CSS and JavaScript for enhanced performance.
However, Cookiebot must be loaded from consent.cookiebot.com and not be deferred or loaded asynchronously if you intend to use the auto-blocking feature. Therefore, the Cookiebot script must be excluded from LiteSpeed Cache optimizations.
The exclusion allows Cookiebot to work as intended, without preventing LiteSpeed from optimizing all other scripts.
Steps to exclude the Cookiebot script from the LiteSpeed Cache plugin
Log in to your WordPress admin and follow these steps to exclude Cookiebot from optimizations and caching in LiteSpeed Cache:
Step 1: Exclude the Cookiebot script from Optimization
- In the WordPress admin, go to LiteSpeed Cache → Page Optimization.
- Select the Tuning tab.
- Enter "consent.cookiebot.com" in the JS Excludes field.
- Enter "consent.cookiebot.com" in the JS Deferred/Delayed Excludes field.
- Click the Save Changes button.
Step 2: Clear The Cache Of Your Website
Ensure the changes in excluding the Cookiebot script take effect by clearing your website’s cache. This step is essential for reflecting the modifications and preventing potential conflicts. Clearing the cache guarantees a smooth implementation of the updated settings.
Comments
0 comments
Please sign in to leave a comment.