Skip to content

Commit 6278876

Browse files
committed
Revert "Fix script ordering"
This reverts commit 1990eed.
1 parent 6e0a087 commit 6278876

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

astro.config.mjs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,7 @@ export default defineConfig({
6464
process.env.NODE_ENV === "development"
6565
? []
6666
: [
67-
{
68-
tag: "script",
69-
attrs: {
70-
src: "https://web.cmp.usercentrics.eu/modules/autoblocker.js",
71-
},
72-
},
73-
{
74-
tag: "script",
75-
attrs: {
76-
id: "usercentrics-cmp",
77-
async: true,
78-
src: "https://web.cmp.usercentrics.eu/ui/loader.js",
79-
"data-settings-id": "Q-tQAA7pNF0dcE",
80-
},
81-
},
82-
// Set theme before other third-party scripts to avoid a dark flash on light theme.
67+
// Set theme before third-party scripts to avoid a dark flash on light theme.
8368
{
8469
tag: "script",
8570
content: `(() => {
@@ -99,6 +84,21 @@ export default defineConfig({
9984
}
10085
})();`,
10186
},
87+
{
88+
tag: "script",
89+
attrs: {
90+
src: "https://web.cmp.usercentrics.eu/modules/autoblocker.js",
91+
},
92+
},
93+
{
94+
tag: "script",
95+
attrs: {
96+
id: "usercentrics-cmp",
97+
async: true,
98+
src: "https://web.cmp.usercentrics.eu/ui/loader.js",
99+
"data-settings-id": "Q-tQAA7pNF0dcE",
100+
},
101+
},
102102
{
103103
tag: "script",
104104
attrs: {

0 commit comments

Comments
 (0)