That depends on the order in which the publisher has set the third-party scripts in their header.
That said, the detection script has no dependency on the CMP and works as expected irrespective of the loading order, and with only 2kb of payload, has virtually no impact on latency for non-adblock traffic.