Skip to content

Comment on Saved 10 billion DNS queries per month by disabling DNS Prefetching

Comments

+ saved 10 billion DNS queries per month.

- wasted a total of 10sec of each user's time per month.

it's all about trade offs

In our (deviantART's) case, the 24-60 links to subdomains were set up so if you clicked them, they dynamically load with javascript on the client side, never actually hitting that subdomain. No time wasted on the user's side, since the browser was prefetching domains that were rarely being hit.

No, it's not; the issue is that the domains prefetch REGARDLESS of whether the links are ever clicked on. The browser is pre-fetching in case the user DOES click on the link. This really verges on being a browser bug, esp. since in firefox's case, it fetches both A and AAAA records.

The benefit is reaped in the event a link is actually clicked on. That's why browsers do it.

you have neglected to take into consideration the cost of running a hosted DNS. Costs for DNS service for any large traffic site is an important consideration.

Still continue to be about trade offs.... We could waste all day expanding my shallow example with items to weight in. but then we'd had to send a consulting invoice

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.