From 81c0bbdc964a1735c06a7d919aaac777e7574c77 Mon Sep 17 00:00:00 2001 From: onresize Date: Fri, 5 Apr 2024 16:37:50 +0800 Subject: [PATCH] =?UTF-8?q?iframe=E9=80=9F=E5=BA=A6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 0191bf2..07db376 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -51,6 +51,17 @@ export default defineUserConfig({ head: [ // 站点图标 ['link', { rel: 'icon', href: '/web-blogs/image.png' }], + // iframe优化 + [ + 'link', + { + rel: 'preload', + href: 'https://onresize.github.io/react-ts-vite-admin/SandPack', + as: 'document', + }, + ], + ['link', { rel: 'dns-prefetch', href: '//onresize.github.io' }], + ['link', { rel: 'preconnect', href: 'https://onresize.github.io' }], // googl分析 [ 'script', @@ -134,6 +145,6 @@ export default defineUserConfig({ searchPlugin({ // 排除首页 isSearchable: (page) => page.path !== '/', - }) + }), ], })