Cookie Consent: Performance Enhancements

  • Updated

Overview

The following settings focus on optimizing the Osano Consent Manager (CMP) for better load times and reduced package sizes. Not all options below will apply to your configuration, but each may have some impact on site speed and/or performance depending on utilization. 

Key Features 

Modern vs. Legacy Browser Support

  • More Performant Option: Legacy Browser Support DISABLED
    • Level of Difficulty to Implement: Low (setting within Osano) 
  • When the support for legacy browsers is disabled, the CMP script excludes compatibility code for older browsers, which significantly reduces the payload size.

IAB Code Removal

  • More Performant Option: IAB Support DISABLED
    • Level of Difficulty to Implement: Low (setting within Osano)
  • The IAB TCF 2.x framework can be enabled or disabled via the "Settings" page. When disabled, all related code is excluded from the Osano.js script upon publishing, leading to a smaller package size. NOTE: If IAB is required for your business, is should NOT be disabled. 

Split Payload (Premier Only)

  • More Performant Option: Split Payload Enabled
    • Level of Difficulty to Implement: Low (setting within Osano) - requires "Premier" license
  • When split payload is enabled high priority request load first while lower priority requests load asynchronously once the DOM has already loaded. NOTE: It's possible that this setting has no effect on page performance depending on how your website currently renders data. 

Rule Optimization

    • Level of Difficulty to Implement: Medium (completed within Osano admin portal)
  • Create more performant rules (fewer regular expressions or more path matches rather than individual entries)

Adjust Load Order

    • Level of Difficulty to Implement: Medium (requires engineering resourcing)
  • Adjust the load order of the Osano script so that it remains in the <head> but that all essential content rendering scripts execute before the Osano script loads.

Inline Classification

    • Level of Difficulty to Implement: High (requires engineering resourcing and management)
  • Inline Classifications allow for developers to add classifications directly within their HTML using Osano data tags. This reduces the need for external classifications, leading to improved performance.