What Is a Race Condition?
A race condition, in the context of tag loading, describes multiple scripts, a CMP, analytics tags, advertising pixels, competing to execute first when a page loads. When a tracking tag wins that race and loads before the CMP, it fires without waiting for a consent decision, resulting in pre-consent firing.
Race conditions are a general software concept (outcomes that depend on unpredictable timing rather than deliberate logic) applied here to a high-stakes moment: the first few hundred milliseconds of a page load. Script load order isn’t guaranteed by default, so which script ‘wins’ can vary by browser, network speed, or caching. That unpredictability is exactly why Pre-Consent Firing tends to go unnoticed: a page might load cleanly nine times out of ten and fail the tenth, which manual spot-checking usually misses and only monitored Consent Simulation reliably catches.