Optimize font loading

This commit is contained in:
Nikita Karamov 2021-01-30 14:32:09 +01:00
parent 157fdef188
commit 3b5d3d5264
No known key found for this signature in database
GPG key ID: EA4E7DECEEA050E4

View file

@ -23,7 +23,12 @@ html(lang="en")
title toot title toot
link(rel="stylesheet", href="main.css") link(rel="stylesheet", href="main.css")
link(rel="stylesheet", href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Roboto:wght@400;500&display=swap") link(rel="preconnect", href="https://fonts.gstatic.com" crossorigin)
link(href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="preload" as="style")
link(href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet" media="print" onload="this.media='all'")
noscript
link(href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet")
link(rel='icon' href='/favicon.ico') link(rel='icon' href='/favicon.ico')
link(rel='icon' type='image/svg+xml' href='/apple-touch-icon.png') link(rel='icon' type='image/svg+xml' href='/apple-touch-icon.png')