Fix content performance issues
This commit is contained in:
@@ -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" : {
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user