Skip to content

Performance and Best Practices

Last updated: February 18, 2026

  • place CMP loader as early as required for consent default timing
  • avoid injecting loader multiple times across templates
  • use async/defer only when it does not break consent ordering requirements
  • test ordering with Tag Assistant and browser timeline
  • document cache TTL for CMP assets and config
  • purge cache after policy-critical updates
  • running multiple CMPs simultaneously
  • firing analytics tags before consent defaults
  • conflicting GTM templates writing consent state
  • initialize CMP once
  • avoid repeated initialization across screens
  • expose clear consent reopen entry point