DNS Resolution Adds Up
macarthur.me·5h·
Discuss: r/webdev
Flag this post

DNS resolution is cheap, but it ain’t free. In scenarios when it counts, the `dns-prefetch` resource hint could give you a nice, slight edge in the front-end performance game.

I like the satisfaction of finding quick, little wins to maximize the front-end performance of a website. Lately, they’ve been found by digging through the modern browser’s many resource hints.

One in particular has caught my fancy: DNS prefetching. It hasn’t enjoyed the same spotlight as hints like preload in recent years, but it has a compelling advantage if the conditions are right – namely, if your site could possibly interact with third-party domains at any point of a page visit. Thinking through those conditions could reap satisfying gains of you…

Similar Posts

Loading similar posts...