- SureCookie Installation Guide
- Installing SureCookie Pro
- Updating SureCookie
- How to Set Up SureCookie: Onboarding Wizard Guide
- SureCookie Dashboard Overview
- Connecting Your Site to SureCookie (Scanner Setup)
- Using SureCookie on Multiple Sites
- Uninstalling SureCookie & Data Cleanup
- SureCookie Shortcodes Reference
- Preferences Settings (Menu, Branding, Analytics)
- Customizing Banner Content
- Customizing Banner Layout
- Custom CSS for Banner Styling
- How to Configure the Floating Widget
- Customizing the Preference Modal
- Controlling Where the Cookie Banner Appears
- Customizing Banner Colors (Custom Colors, WCAG)
- Customizing the Blocked Content UI
- Banner Text in the Wrong Language (WPML, Polylang, and Locales)
- Re-Consent
- Understanding SureCookie Logs
- How to Set Up Geographic Targeting
- Block Scripts Until Consent (Resource Blocking)
- Setting Up Google Consent Mode v2
- Consent Models Explained (Opt-in vs Opt-out)
- Exporting Consent Logs (PDF Proof + CSV)
- Consent & Data Settings (Duration, Retention, Renew)
- Consent Forwarding Across a Multisite Network
- Resource / Script Blocking (Add Embeds + Fixes)
- CCPA / CPRA Compliance with SureCookie
- Handling Data Requests
- Setting Up Your Business Details
- Generating a Privacy Policy Page
- Recording Consent Without Storing Visitor IP Addresses
- What SureCookie Blocks Before Consent
- Generating a Cookie Policy Page
- Troubleshooting SureCookie
- Fix a Stuck or Failed Cookie Scan
- Why Some Cookies Aren’t Detected
- Banner Not Appearing: Troubleshooting
- Settings or Cookie Categories Not Saving or Loading
- Embeds Blocked After Consent (YouTube, Maps, Vimeo)
- Site Performance / Page Speed
- Scanning Your Site From Your Browser
- Importing and Exporting SureCookie Settings
- Verifying Your Domain With a DNS Record
Block Scripts Until Consent (Resource Blocking)
Block Scripts Until Consent holds supported scripts and embeds that match a rule until their category is allowed. Some resources, including image pixels, can still load.
What is Block Scripts Until Consent?
Block Scripts Until Consent is a consent-first approach to loading third-party scripts and embedded content on your website.
When enabled, SureCookie checks the scripts, embeds and stylesheets on each page, both in the HTML your server sends and in what scripts add after the page loads. Anything it recognizes as non-essential is held until the visitor accepts its category.
Think of it as a gatekeeper – scripts wait at the door until they’re invited in.
How It Works
The process is straightforward:
- A visitor lands on your page
- SureCookie checks the page’s scripts, iframes, embeds and stylesheets against its catalog and your own rules
- Recognized non-essential resources are held before they load
- The visitor sees your consent banner and makes their choice
- Only the approved categories get unblocked and run
All of this happens instantly, behind the scenes.
Getting Started
You’ll find this setting in your SureCookie admin dashboard:
SureCookie → Tracking Manager → Scripts and Embeds → Block Scripts Until Consent

It is on by default. If it is off, toggle it on and click Save.
Smart Categorization
Not all scripts are treated the same. SureCookie carefully sorts every resource into the right category:
- Essential: Required for basic site functionality (always allowed)
- Analytics: Tools that help you understand visitor behavior
- Marketing: Advertising and retargeting scripts
- Functional: Features that enhance user experience
When a visitor consents to Analytics only, just those scripts run. Marketing stays blocked. It’s precise, respectful, and exactly how consent should work.
Supported Content Types
SureCookie holds these when they load from a service it recognizes, or from a host you added on Scripts and Embeds:
- Scripts, external and inline
- Iframes, including lazy-loaded ones, such as YouTube, Vimeo and Google Maps embeds
- Embed and object elements
- Stylesheets and the fonts they load, plus preload, prefetch and preconnect hints (since 1.5.0)
- YouTube and Vimeo video facades (since 1.8.0)
Images, plain HTML5 video and audio files, and files that a stylesheet or a script fetches by itself are not held. See What SureCookie Blocks Before Consent for the full list and how to cover the gaps.
Known Services
Open Tracking Manager → Known Services to browse services included in the catalog.
Powered by SureCookie Library
Blocking runs on your own site, from a catalog that ships with the plugin and is refreshed from library.surecookie.com. The cloud scanner finds what your pages load, so your list stays complete.
What makes it different:
- Real Browser Scanning: We detect scripts the way browsers actually load them, not just by reading source code
- Compliance Ready: Kept current: the catalog is updated as services change how they load
- Privacy First: The scanning itself respects privacy. We analyze behavior patterns, not personal data
This combination means fewer missed scripts, better compliance, and less manual work for you.
Quick Recap
| What it does | Why it matters |
|---|---|
| Holds recognized scripts, embeds and stylesheets before they load | Recognized trackers wait for consent |
| Categorizes resources automatically | Visitors control exactly what runs |
| Covers videos, maps and fonts | Embedded content and fonts wait too |
| Uses real browser scanning | Finds trackers that only appear after the page loads |
Need Help?
If a script isn’t being detected or you’re seeing unexpected behavior, reach out to our support team. We’re happy to investigate and update our detection library if needed.
We don't respond to the article feedback, we use it to improve our support content.