From 604cd27f8069a2ce95f5106719362a5d5b90a1b1 Mon Sep 17 00:00:00 2001 From: Daniel Jordi Date: Mon, 20 Jul 2020 15:04:17 +0200 Subject: [PATCH] Load css with preload to not block the page initial rendering --- layouts/partials/header.html | 29 +++++++++++++++++++++++------ static/assets/css/fontello.css | 2 +- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e921894..630f504 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,16 +3,33 @@ - + crossorigin="anonymous" +> + - - + + + + - - + + + + + + + diff --git a/static/assets/css/fontello.css b/static/assets/css/fontello.css index 62fefb0..77635f5 100644 --- a/static/assets/css/fontello.css +++ b/static/assets/css/fontello.css @@ -7,7 +7,7 @@ url('../font/fontello.ttf?91505657') format('truetype'), url('../font/fontello.svg?91505657#fontello') format('svg'); font-weight: normal; - font-style: normal; + font-style: swap; } /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */