UI Drafter
Blog

Performance
Prefetch DNS Records

October 2, 2020
Eric Fortis

At my location, each prefetched DNS record saves about 240ms of load time. Therefore, UI Drafter's pages prefetch domain names users may go next, for example the documentation one.

Option 1: <link> tag

<head>
  <link rel="dns-prefetch" href="//docs.uidrafter.com">

Option 2: Link response header

Link: <//docs.uidrafter.com>; rel="dns-prefetch"

Sponsored by: