3 ms·
Secondary protip: use a DNS prefetch for even faster 3rd party asset delivery. <link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> More at: http://html5bo
by paulirish 15y ago
Secondary protip: use a DNS prefetch for even faster 3rd party asset delivery.
<link rel="dns-prefetch" href="//cdnjs.cloudflare.com">
More at: http://html5boilerplate.com/docs/#DNS-Prefetching http://html5boilerplate.com/docs/#DNS-Prefetching
- iamjustlooking 15y agoIf you're loading the javascript on the same page you're surely going to see no benefit at all right?
- paulirish 15y agoThe browser can parallelize the DNS lookup, whereas running it serially and delaying the RTT for the asset will be much slower. So there is significant benefit to be had regardless. More: http://www.chromium.org/developers/design-documents/dns-prefetching#TOC-Effectiveness http://www.chromium.org/developers/design-documents/dns-pref...
- iamjustlooking 15y agoNeat trick! Thanks!