How to configure SiteGround Optimizer with My Agile Privacy®
Last updated: October 30, 2026
SiteGround’s SG Optimizer / Speed Optimizer plugin is a user-friendly yet powerful tool for improving your WordPress site’s performance.
It features options for minifying, combining, and delaying the loading of CSS and JS files to reduce page size and speed up site loading.
However, overly aggressive caching and optimization can interfere with preemptive blocking and jeopardize GDPR compliance.
To optimize speed without affecting My Agile Privacy®, follow these steps:
Since My Agile Privacy® 3.4.1 these exclusions are automatic: the plugin keeps its own scripts out of the SiteGround Speed Optimizer optimizations by itself, and its CSS out of the combination. The steps below are for earlier versions, or if you still notice problems.
First, from your site’s admin panel, go to SG Optimizer > Frontend.
Exclusion of My Agile Privacy® CSS from Optimizations
To ensure My Agile Privacy® works correctly, exclude its CSS files from SG Optimizer’s minification and combination.
- Adjust the “Exclude from CSS minification” setting. Open the selection menu from Frontend > CSS and choose the relevant files: my-agile-privacy-frontend.css and my-agile-privacy-notification-bar.css. Save your changes.
- For proper operation, also exclude these files from CSS combination by using the “Exclude from CSS combination” option, selecting the same files, and saving again.
Exclusion of My Agile Privacy® JavaScript
Similarly, you must exclude My Agile Privacy®’s JavaScript files from minification, combination, and deferred execution.
- Go to the “JavaScript” tab under Speed Optimizer options > Frontend.
- Add the necessary exclusions in each of the following settings:
- Exclude from JavaScript minimization
- Exclude from the combination of JavaScript
- Exclude from render-blocking JS deferral
Select the relevant My Agile Privacy® files in each case and be sure to save your changes.
These exclusions should ensure that My Agile Privacy® functions as intended.
After adjusting your optimization or caching settings, always verify proper site operation.
If you continue to experience issues, further settings may need adjustment, or you can contact our support service or SiteGround’s support for assistance.

