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 {
|
||||
height: 100%;
|
||||
}
|
||||
|
|
|
@ -31,6 +31,16 @@
|
|||
hiddenElements.forEach(element => document.getElementById(element).classList.add('hidden'))
|
||||
}
|
||||
</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 %}
|
||||
</head>
|
||||
|
||||
|
|
Loading…
Reference in New Issue