Request fonts directly from html.

Reduces request-chaining.
This commit is contained in:
Sage Vaillancourt 2022-10-02 11:24:52 -04:00
parent bd096ba364
commit a009dd8800
2 changed files with 10 additions and 10 deletions

View File

@ -1,13 +1,3 @@
@font-face {
font-family: 'Barlow';
src: url('/static/fonts/Barlow-Regular.ttf');
}
@font-face {
font-family: 'BarlowMedium';
src: url('/static/fonts/Barlow-Medium.ttf');
}
html { html {
height: 100%; height: 100%;
} }

View File

@ -31,6 +31,16 @@
hiddenElements.forEach(element => document.getElementById(element).classList.add('hidden')) hiddenElements.forEach(element => document.getElementById(element).classList.add('hidden'))
} }
</script> </script>
<style>
@font-face {
font-family: 'Barlow';
src: url('/static/fonts/Barlow-Regular.ttf');
}
@font-face {
font-family: 'BarlowMedium';
src: url('/static/fonts/Barlow-Medium.ttf');
}
</style>
{% block head %}{{ head }}{% endblock head %} {% block head %}{{ head }}{% endblock head %}
</head> </head>