Skip to content

Commit 9e0ac5c

Browse files
committed
update
1 parent 278592b commit 9e0ac5c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

index.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ hero:
1515
{% for item in showreel %}
1616
{% if item.type == "video" %}
1717
<div class="slide" data-type="video" data-src="{{ item.src | url }}">
18-
<video playsinline muted preload="metadata">
19-
<source src="{{ item.src | url }}">
18+
<video class="lazyload" playsinline muted preload="metadata">
19+
<source data-src="{{ item.src | url }}">
2020
</video>
2121
</div>
2222
{% else %}

projects/short-film-projects.njk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ title: Short Film Projects
1717
{% if p.data.vimeoId %}
1818
<div class="video-wrapper" style="margin:12px 0;">
1919
<iframe
20-
src="https://player.vimeo.com/video/{{ p.data.vimeoId }}?background=1&autoplay=1&loop=1&muted=1"
20+
class="lazyload"
21+
data-src="https://player.vimeo.com/video/{{ p.data.vimeoId }}?background=1&autoplay=1&loop=1&muted=1"
2122
width="100%" height="420" frameborder="0"
2223
loading="lazy"
2324
allow="autoplay; fullscreen; picture-in-picture"

0 commit comments

Comments
 (0)