diff --git a/assets/js/player.js b/assets/js/player.js index 398c66f8..7c920400 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -34,10 +34,6 @@ if (player_data.aspect_ratio) { options.aspectRatio = player_data.aspect_ratio; } -if (player_data.preload) { - options.preload = player_data.preload -} - var embed_url = new URL(location); embed_url.searchParams.delete('v'); var short_url = location.origin + '/' + video_data.id + embed_url.search; diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index f72fd9de..5c28358b 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -74,8 +74,7 @@ "title" => video.title, "description" => HTML.escape(video.short_description), "thumbnail" => thumbnail, - "preferred_caption_found" => !preferred_captions.empty?, - "preload" => params.preload ? "auto" : "none" + "preferred_caption_found" => !preferred_captions.empty? }.to_pretty_json %>