Fix content performance issues

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2022-11-26 05:16:33 +01:00
parent 58d126287e
commit 8db9cfe027
2 changed files with 2 additions and 1 deletions
@@ -68,7 +68,7 @@ videos:
{% for video in page.videos.videos %}
{% capture capture_video %}
{% include blocks/media.liquid type="video" caption=caption poster=video.poster muted=true preload="metadata" id=video.id player=true %}
{% include blocks/media.liquid type="video" caption=caption poster=video.poster muted=true preload="none" id=video.id player=true %}
<script>
document.getElementById("{{ video.id }}").variants = {
{% for bitrate in page.videos.bitrates %}"{{ bitrate }}kbit/s" : {
+1
View File
@@ -75,6 +75,7 @@ fonts:
url: "assets/fonts/Roboto-BlackItalic.ttf"
---
{% for font in page.fonts %}{% for style in font.styles %}@font-face {
font-display: auto;
font-family: "{{ font.family }}";{% if style.weight %}
font-weight: {{ style.weight }};{% endif %}{% if style.style %}
font-style: {{ style.style}};{% endif %}