This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-handbook.git
The following commit(s) were added to refs/heads/master by this push:
new f5076b2 add dns prefetch
f5076b2 is described below
commit f5076b2f00a94c2572a5f8b29eba07da1927dd6b
Author: plainheart <[email protected]>
AuthorDate: Mon Jul 8 11:39:03 2024 +0800
add dns prefetch
---
layouts/default.vue | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/layouts/default.vue b/layouts/default.vue
index ddcff86..b541c81 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -43,6 +43,18 @@ export default {
type: 'image/png',
href: `https://echarts.apache.org/${locale}/images/favicon.png`
},
+ ...(isCN ? [
+ 'https://lib.baomitu.com',
+ 'https://registry.npmmirror.com'
+ ] : [
+ 'https://fastly.jsdelivr.net',
+ 'https://cdn.jsdelivr.net',
+ ])
+ .concat('https://avatars.githubusercontent.com')
+ .map(domain => ({
+ rel: 'dns-prefetch',
+ href: domain
+ })),
{
rel: 'stylesheet',
href: isCN
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]