1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Added font preloading

This commit is contained in:
krateng 2022-03-30 19:19:31 +02:00
parent 3275e4ec5d
commit 608986b239
2 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,8 @@
<script src="/neopolitan.js"></script>
<script src="/upload.js"></script>
<link rel="preload" href="/static/ttf/Ubuntu-Regular.ttf" as="font" type="font/woff2" crossorigin />
{% block scripts %}{% endblock %}
</head>

View File

@ -3,5 +3,5 @@
font-family: 'Ubuntu';
font-style: normal;
font-weight: 400;
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), url('/Ubuntu-Regular.ttf') format('woff2');
src: local('Ubuntu Regular'), local('Ubuntu-Regular'), url('/static/ttf/Ubuntu-Regular.ttf') format('woff2');
}