0
qi 1.44K 贡献

1、打开DNS Prefetching:

<meta http-equiv="x-dns-prefetch-control" content="on"/>

2、加入要预读的域名地址:

<link rel='dns-prefetch' href='//s.w.org' />
<link rel='dns-prefetch' href='//img.freehao123.com' />
<link rel='dns-prefetch' href='//pic.freehao123.com' />

3、适合场景:网页中引用了不大量不在本域的域名。
官方:
1、https://www.chromium.org/developers/design-documents/dns-prefetching
2、https://developer.mozilla.org/zh-CN/docs/Controlling_DNS_prefetching

qi 已回应