preconnect

dns-prefetch + preconnect vs. browser cache

混江龙づ霸主 提交于 2021-01-07 02:52:23
问题 To improve the page load time I want to use dns-prefetch and preconnect for external javascripts. <link rel="dns-prefetch" href="https://example.com"> <link rel="preconnect" href="https://example.com"> What happen if the ressource (in my case the external javascript) is already in the browser cache? Do dns-prefetch and preconnect add page load time unnecessarily? In other words: Are dns-prefetch and preconnect only useful on the first page load? 回答1: On the repeat visit, the preconnect/dns

dns-prefetch + preconnect vs. browser cache

前提是你 提交于 2021-01-07 02:51:42
问题 To improve the page load time I want to use dns-prefetch and preconnect for external javascripts. <link rel="dns-prefetch" href="https://example.com"> <link rel="preconnect" href="https://example.com"> What happen if the ressource (in my case the external javascript) is already in the browser cache? Do dns-prefetch and preconnect add page load time unnecessarily? In other words: Are dns-prefetch and preconnect only useful on the first page load? 回答1: On the repeat visit, the preconnect/dns

dns-prefetch + preconnect vs. browser cache

落爺英雄遲暮 提交于 2021-01-07 02:51:33
问题 To improve the page load time I want to use dns-prefetch and preconnect for external javascripts. <link rel="dns-prefetch" href="https://example.com"> <link rel="preconnect" href="https://example.com"> What happen if the ressource (in my case the external javascript) is already in the browser cache? Do dns-prefetch and preconnect add page load time unnecessarily? In other words: Are dns-prefetch and preconnect only useful on the first page load? 回答1: On the repeat visit, the preconnect/dns