Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Responsive Design High Performance

You're reading from   Responsive Design High Performance

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784390839
Length 162 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (11) Chapters Close

Preface 1. The Good, the Bad, and the Ugly of Responsive Web Design FREE CHAPTER 2. Tweaking Your Website for Performance 3. Managing Images 4. Learning Content Management 5. The Fastest HTTP Request is No HTTP Request 6. Testing, Testing, and Testing! 7. Speeding Up Development with Design Concepts, Patterns, and Programs 8. Using Tools for Performance A. Taking the Next Steps Index

DNS prefetching

DNS prefetching is a useful technique when your website accesses multiple sites that are on different domains.

Here is a code snippet of a DNS prefetch that is placed in the <head> tags:

<link rel="dns-prefetch" href="http://www.paperjetwednesday.com/">

The purpose of DNS prefetching

DNS prefetching attempts to resolve the domain names before the user follows a link to that domain. If the domain has been resolved, the advantage of this will be that there is effectively no delay due to DNS name resolution.

An excellent example of using DNS prefetching would be for results in a search that link to various other domains. Here are a few types of prefetching:

  • -prefetch: This identifies a resource file, such as an image or a CSS style sheet, to be included in the cache
  • -dns-prefetch: This identifies a DNS query to resolve the background so that requests can occur more quickly
  • -prerender (IE only): This identifies a web page to load in the background, if...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime