From 2027ecc1d5eea0b7d247330e4319a7cf5546bc5c Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Tue, 6 Apr 2021 19:31:28 -0400 Subject: [PATCH] adding svg sprite file prefetch --- lib/home73k_web/templates/layout/root.html.leex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/home73k_web/templates/layout/root.html.leex b/lib/home73k_web/templates/layout/root.html.leex index bf3e21f..67b33bc 100644 --- a/lib/home73k_web/templates/layout/root.html.leex +++ b/lib/home73k_web/templates/layout/root.html.leex @@ -8,6 +8,7 @@ <%= live_title_tag assigns[:page_title] || "", prefix: assigns[:page_title] && "73k \\ " || "73k" %> + " as="image" type="image/svg+xml"> @@ -26,6 +27,9 @@ + <%# inserting img code to suppress img prefetch warning for svg sprites %> + " style="display: none"> + <%= render "_navbar.html", assigns %> <%= @inner_content %>