Skip to content

Commit

Permalink
docs: defer script load
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Jan 3, 2025
1 parent ea2421b commit 34289f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docsite/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ const config: Config = {
if (process.env.ANALYTICS !== undefined && process.env.ANALYTICS !== '') {
const script = {
src: process.env.ANALYTICS,
defer: true
}
if (process.env.ANALYTICS_DOMAIN !== undefined && process.env.ANALYTICS_DOMAIN !== '') {
script['data-domain'] = process.env.ANALYTICS_DOMAIN;
Expand Down

0 comments on commit 34289f0

Please sign in to comment.