Skip to main content

Questions tagged [rel-dns-prefetch]

`<link rel="dns-prefetch">` is used to reduce DNS lookup time by pre-resolving at the browser.

Filter by
Sorted by
Tagged with
0 votes
1 answer
426 views

Preconnect domain for all images in page, not just first image

I use leaflet to display a map made of about 12 maptiles, that come from 4 Stamen subdomains, only differing with -a, -b, -c and -d middle part endings : stamen-tiles-a.a.ssl.fastly.net etc So as to ...
JLuc's user avatar
  • 103
4 votes
1 answer
1k views

Should I use DNS prefetch and preconnect when loading resources from CDN?

In my web page I load around 12 resources from jsdelivr (CSS and JS). Should I optimize it with one (or both) of following techniques? If yes, should I put the tags right before loading tags or at the ...
Omid Shojaee's user avatar
1 vote
0 answers
38 views

rel="dns-prefetch" / rel="preconnect" vs far-future expiry headers...?

I've always been a big fan of far-futures expiry headers. First time visit on my site's homepage results in 40 HTTP requests, but a subsequent visit comes in at 1, with a response as snappy as you'd ...
Codemonkey's user avatar
4 votes
1 answer
2k views

Should I dns-prefetch all Google Ads domains?

On our website, we dns-prefetch our domains (static files, subdomains, etc) as they may not be known. 1) Does it make sense to dns-prefetch Google Ads or Analytics domains as they are popular? 2) If ...
Toto's user avatar
  • 345
2 votes
1 answer
851 views

dns-prefetch: Best practice for many resources

I made a list of all domains that resources on my site may use. How do I add the link-tags for dns-prefetch for best practice? 1) Can I simplify life and output them all on every page? How painful ...
Martin's user avatar
  • 161
4 votes
2 answers
577 views

Should <link ref="dns-prefetch"> tag be placed as high as possible in <head> website?

I'm implementing the new dns-prefetch tag for my web application and I wonder where I should place it in the <head> tag? Should I place it as the first tag in <head> so that browser ...
bodacydo's user avatar
  • 173
8 votes
1 answer
3k views

SEO and other impacts of using rel="dns-prefetch"

I recently came across a site that had the following code: <link rel="dns-prefetch" href="//ajax.googleapis.com"> In looking it up it says it is used to Reduce DNS lookup time by pre-...
L84's user avatar
  • 2,016