Skip to content

Commit

Permalink
minify-external-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Nov 19, 2024
1 parent c60a04a commit 92107c4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions components/ExternalPlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import { isBrowser, loadExternalResource } from '@/lib/utils'
import dynamic from 'next/dynamic'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
import Coze from './Coze'
import { GlobalStyle } from './GlobalStyle'
import { initGoogleAdsense } from './GoogleAdsense'
import LA51 from './LA51'
import TianLiGPT from './TianliGPT'

import WebWhiz from './Webwhiz'

/**
Expand Down Expand Up @@ -148,7 +146,7 @@ const ExternalPlugin = props => {
{!CAN_COPY && <DisableCopy />}
{WEB_WHIZ_ENABLED && <WebWhiz />}
{AD_WWADS_BLOCK_DETECT && <AdBlockDetect />}
{TIANLI_KEY && <TianLiGPT />}
{TIANLI_KEY && <TianliGPT />}
<VConsole />
{ENABLE_NPROGRSS && <LoadingProgress />}
<AosAnimation />
Expand Down Expand Up @@ -427,4 +425,14 @@ const AosAnimation = dynamic(() => import('@/components/AOSAnimation'), {
ssr: false
})

const Coze = dynamic(() => import('@/components/Coze'), {
ssr: false
})
const LA51 = dynamic(() => import('@/components/LA51'), {
ssr: false
})
const TianliGPT = dynamic(() => import('@/components/TianliGPT'), {
ssr: false
})

export default ExternalPlugin

0 comments on commit 92107c4

Please sign in to comment.