From 92107c47378ca7be4de95511005a4716bbe293e8 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 19 Nov 2024 22:51:04 +0800 Subject: [PATCH] minify-external-plugins --- components/ExternalPlugins.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/components/ExternalPlugins.js b/components/ExternalPlugins.js index af9ffac117d..8e7ab3fc959 100644 --- a/components/ExternalPlugins.js +++ b/components/ExternalPlugins.js @@ -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' /** @@ -148,7 +146,7 @@ const ExternalPlugin = props => { {!CAN_COPY && } {WEB_WHIZ_ENABLED && } {AD_WWADS_BLOCK_DETECT && } - {TIANLI_KEY && } + {TIANLI_KEY && } {ENABLE_NPROGRSS && } @@ -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