Performance and Best Practices
Last updated: February 18, 2026
1. Loader Placement
Section titled “1. Loader Placement”- place CMP loader as early as required for consent default timing
- avoid injecting loader multiple times across templates
2. Script Attributes
Section titled “2. Script Attributes”- use async/defer only when it does not break consent ordering requirements
- test ordering with Tag Assistant and browser timeline
3. Caching
Section titled “3. Caching”- document cache TTL for CMP assets and config
- purge cache after policy-critical updates
4. Anti-Patterns to Avoid
Section titled “4. Anti-Patterns to Avoid”- running multiple CMPs simultaneously
- firing analytics tags before consent defaults
- conflicting GTM templates writing consent state
5. Mobile SDK Practices
Section titled “5. Mobile SDK Practices”- initialize CMP once
- avoid repeated initialization across screens
- expose clear consent reopen entry point