Skip to content

Invidious is an alternative front-end to YouTube

Disable preload on embedded videos by default

Omar Rothf3646dc0bb17
diff --git a/src/invidious/views/embed.ecr b/src/invidious/views/embed.ecr
index 23ade84e..1786a90b 100644
--- a/src/invidious/views/embed.ecr
+++ b/src/invidious/views/embed.ecr
@@ -64,7 +64,9 @@ video, #my_video, .video-js, .vjs-default-skin
<script>
var options = {
+ <% if autoplay %>
preload: 'auto',
+ <% end %>
playbackRates: [0.5, 1, 1.5, 2],
controlBar: {
children: [