O'Reilly logo

HTML5 Boilerplate Web Development by Divya Manian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making your site faster

If your pages use a lot of resources such as images, then perhaps it would be wise to prefetch those resources so your page loads faster. DNS prefetching would be a way to do that.

DNS prefetching

DNS prefetching informs the browser of resources on other domain names that are referred to within the page early on during the page load, so it can do the DNS resolution of these domain names.

A browser has to look up a domain name on a Domain Name Server (DNS) to figure out where it is located on the Internet. Sometimes, it has to go through multiple layers of Domain Name Servers and it could be very slow and is not always consistent. By using DNS prefetching, even before a user clicks a link, or loads a resource, the DNS resolution ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required