Request fonts directly from html.
Reduces request-chaining.
This commit is contained in:
parent
bd096ba364
commit
a009dd8800
|
@ -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%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue