Skip to content

Commit

Permalink
fix: disable kapa.ai (#1447)
Browse files Browse the repository at this point in the history
Kapa.ai is a nice tool but the bundle size is way too big, dragging down page speed significantly. Until the Kapa.ai widget is optimized, or we find a way to lazy load the script, we need to disable it.
  • Loading branch information
aeneasr authored Jul 10, 2023
1 parent 8295d4f commit 73f9ab6
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,17 @@ const config = {
scripts: [
// Needed as a workaround for https://answers.netlify.com/t/trailing-slash-missing-on-proxied-netlify-site/36367
"/docs/scripts/redirect.js",
{
src: "https://widget.kapa.ai/kapa-widget.bundle.js",
"data-website-id": "e89e7663-df2c-4c7f-974a-1bf8accdd615",
"data-project-name": "Ory",
"data-project-color": "#1A237E",
"data-project-logo":
"https://assets.website-files.com/627ba6588811eca90ffd6f2a/6282a6b11450b482db646ed2_hydra.png",
async: true,
},
// Disabled until widget size is fixed.
//
// {
// src: "https://widget.kapa.ai/kapa-widget.bundle.js",
// "data-website-id": "e89e7663-df2c-4c7f-974a-1bf8accdd615",
// "data-project-name": "Ory",
// "data-project-color": "#1A237E",
// "data-project-logo":
// "https://assets.website-files.com/627ba6588811eca90ffd6f2a/6282a6b11450b482db646ed2_hydra.png",
// async: true,
// },
],
}

Expand Down

0 comments on commit 73f9ab6

Please sign in to comment.