Skip to content

Commit 45360b1

Browse files
authored
Remove HubSpot and Thred script loaders (#682)
* Remove the HubSpot script loader Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> * Remove Thred script loader Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> --------- Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> Co-authored-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
1 parent d6355d0 commit 45360b1

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

docusaurus.config.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -103,24 +103,6 @@ const config: Config = {
103103
},
104104
};
105105
},
106-
function thredSearchSignals() {
107-
return {
108-
name: 'thred-search-signals',
109-
injectHtmlTags() {
110-
if (!isProductionDeploy) return {};
111-
return {
112-
postBodyTags: [
113-
{
114-
tagName: 'script',
115-
attributes: {
116-
src: 'https://cdn.thred.dev/thred-track.js?browserKey=8516ce3e-18ef-4f7f-be44-2bf408657d14',
117-
},
118-
},
119-
],
120-
};
121-
},
122-
};
123-
},
124106
],
125107

126108
// Set the production url of your site here
@@ -216,21 +198,6 @@ const config: Config = {
216198
],
217199
],
218200

219-
scripts: [
220-
// HubSpot tracking script (production only)
221-
...(isProductionDeploy
222-
? [
223-
{
224-
id: 'hs-script-loader',
225-
type: 'text/javascript',
226-
src: '//js-na2.hs-scripts.com/42544743.js',
227-
async: true,
228-
defer: true,
229-
},
230-
]
231-
: []),
232-
],
233-
234201
themeConfig: {
235202
colorMode: {
236203
defaultMode: 'dark',

0 commit comments

Comments
 (0)