Skip to content

Commit

Permalink
chore: load consent defer and non-blocking (#1977)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Dec 20, 2024
1 parent 75ebf83 commit f31cd90
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,14 @@ const config: Config = {
scripts: [
// Needed as a workaround for https://answers.netlify.com/t/trailing-slash-missing-on-proxied-netlify-site/36367
"/docs/scripts/redirect.js",
"https://ory.sh/cmp/init.js",
"https://consent.ory.sh/index.js",
{
src: "https://ory.sh/cmp/init.js",
// Can not yet be deferred as it is required for the ui to work
},
{
src: "https://consent.ory.sh/index.js",
defer: true,
},
{
src: "https://widget.kapa.ai/kapa-widget.bundle.js",
"data-website-id": "e89e7663-df2c-4c7f-974a-1bf8accdd615",
Expand Down

0 comments on commit f31cd90

Please sign in to comment.