From 840c0c904945e61705e8d5a7a98eb4509b818059 Mon Sep 17 00:00:00 2001 From: Akinsola Lawanson Date: Fri, 19 Jun 2026 10:27:53 +0100 Subject: [PATCH] Remove initialiseCmp from Promise.all --- dotcom-rendering/src/client/bootCmp.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotcom-rendering/src/client/bootCmp.ts b/dotcom-rendering/src/client/bootCmp.ts index 5bdc46ba88d..62410b5a985 100644 --- a/dotcom-rendering/src/client/bootCmp.ts +++ b/dotcom-rendering/src/client/bootCmp.ts @@ -58,8 +58,9 @@ export const bootCmp = async ( ): Promise => { if (!window.guardian.config.switches.consentManagement) return; // CMP turned off! + // Initalise CMP before attempting to submit consent to Ophan, otherwise the consent state may be empty on first load. + await initialiseCmp(); await Promise.all([ - initialiseCmp(), eagerlyImportPrivacySettingsLinkIsland(), submitConsentToOphan(renderingTarget), ]);