From e359c8bcc44c4467aea7d2ace1f33f75d98ce25f Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 11 Jul 2018 18:45:29 +0200 Subject: [PATCH] [docs] Preconnect to load the fonts Should provide a small perf boost --- pages/_document.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/_document.js b/pages/_document.js index 8f16ee9dca0b37..3a4306bb15f4e8 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -28,6 +28,12 @@ class MyDocument extends Document { return ( + {/* + Preconnect allows the browser to setup early connections before an HTTP request + is actually sent to the server. + This includes DNS lookups, TLS negotiations, TCP handshakes. + */} + {/* Use minimum-scale=1 to enable GPU rasterization */}