Skip to content

Commit

Permalink
Added font-display: swap to Google Font loading
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed May 17, 2019
1 parent 5e6c345 commit 94d6f2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
2 changes: 1 addition & 1 deletion src/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 94d6f2c

Please sign in to comment.