From cea8cbd924694d9951eb25baf382fa07f8993316 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 2 Jul 2019 13:09:06 +0100 Subject: [PATCH] Preload primary font to speed up page rendering --- app/views/layouts/darkswarm.html.haml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/layouts/darkswarm.html.haml b/app/views/layouts/darkswarm.html.haml index 79d78c67ea..5daa4d1d45 100644 --- a/app/views/layouts/darkswarm.html.haml +++ b/app/views/layouts/darkswarm.html.haml @@ -13,6 +13,7 @@ - else = favicon_link_tag "/favicon-staging.ico" %link{href: "https://fonts.googleapis.com/css?family=Roboto:400,300italic,400italic,300,700,700italic|Oswald:300,400,700", rel: "stylesheet", type: "text/css"} + %link{href: "/OFN-v2.woff?eslsji", rel: "preload", as: "font", crossorigin: "anonymous"} = yield :scripts %script{:src => "https://js.stripe.com/v3/", :type => "text/javascript"}