Skip to content

Commit

Permalink
iframe速度优化
Browse files Browse the repository at this point in the history
  • Loading branch information
onresize committed Apr 5, 2024
1 parent d1e6bce commit 81c0bbd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -134,6 +145,6 @@ export default defineUserConfig({
searchPlugin({
// 排除首页
isSearchable: (page) => page.path !== '/',
})
}),
],
})

0 comments on commit 81c0bbd

Please sign in to comment.