Added font-display: swap to Google Font loading

This commit is contained in:
squidfunk 2019-05-17 18:57:11 +02:00
parent 5e6c345fc1
commit 94d6f2c68b
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{
font.text | replace(' ', '+') + ':300,400,400i,700|' +
font.code | replace(' ', '+')
}}">
}}&display=swap">
<style>body,input{font-family:"{{ font.text }}","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"{{ font.code }}","Courier New",Courier,monospace}</style>
{% endif %}
{% endblock %}

View File

@ -145,7 +145,7 @@
href="https://fonts.googleapis.com/css?family={{
font.text | replace(' ', '+') + ':300,400,400i,700|' +
font.code | replace(' ', '+')
}}" />
}}&display=swap" />
<style>
body, input {
font-family: "{{ font.text }}", "Helvetica Neue",