Autoptimize WordPress Plugin

Autoptimize is a popular WordPress plugin used for optimizing website performance by minifying, combining, and deferring JavaScript, CSS, and HTML. To ensure the proper functioning of Sirdata CMP scripts, it’s crucial to exclude them from Autoptimize's optimization processes.


Steps to Exclude Sirdata CMP Scripts in Autoptimize

  1. Access Autoptimize Settings

    • Log in to your WordPress Admin Dashboard.

    • Navigate to Settings > Autoptimize.

  2. Exclude Sirdata Scripts from JavaScript Optimization

    • In the Autoptimize settings, find the JavaScript Options section.

    • Locate the field labeled Exclude scripts from Autoptimize.

    • Add the following entries (one per line):

      .consentframework.com
      .abconsent.net
  3. Exclude Sirdata Scripts from CSS Optimization (if applicable)

    • Scroll to the CSS Options section.

    • In the Exclude CSS from Autoptimize field, add:

      .consentframework.com
      .abconsent.net
  4. Save Changes

    • Scroll to the bottom of the page and click the Save Changes and Empty Cache button. This ensures that the exclusions are applied and the cache is refreshed.

  5. Verify Exclusions

    • Visit your website and check if Sirdata CMP scripts are functioning correctly. You can use browser developer tools (e.g., Chrome DevTools) to confirm that the scripts are loading properly and are not being optimized.


Why Exclude Sirdata CMP Scripts?

  • Dynamic and Geolocated Behavior: Sirdata CMP scripts adapt dynamically to user location and preferences. Optimizing or caching these scripts can result in incorrect or outdated behavior.

  • Regulatory Compliance: These scripts are critical for adhering to privacy regulations. Any interference may lead to non-compliance, complaints, or revenue loss.


By following these steps, Autoptimize will exclude Sirdata CMP scripts from its optimization processes, ensuring proper functionality and compliance.

Dernière mise à jour