summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2024-10-08 17:33:18 +0200
committerSamantaz Fox <coding@samantaz.fr>2024-10-08 17:38:06 +0200
commit82ac9a86094364afaedae92030b51f39e9468ea0 (patch)
tree32dcc1c64aab4365d261670e6537c7cbbc05755d /assets/js
parent7c79ee7cc224014cad1c30290fdf2ab996632a9e (diff)
parentf247b2f8625c05ca308bb4a83caecc5b27726854 (diff)
downloadinvidious-82ac9a86094364afaedae92030b51f39e9468ea0.tar.gz
invidious-82ac9a86094364afaedae92030b51f39e9468ea0.tar.bz2
invidious-82ac9a86094364afaedae92030b51f39e9468ea0.zip
Preferences: Add option to control preloading of video data (#4122)
This PR adds a configuration option to control the preloading of video data on page load with the HTML5 'preload'[1] attribute on the `<video>` element. The option is enabled by default, meaning that the `preload` attribute's value will be 'auto'. If users want to prevent preloading of video data, they can disable the option, which will set the attribute value to 'none'. [1](https://www.w3schools.com/tags/att_video_preload.asp) Closes issue 4110
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/player.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/assets/js/player.js b/assets/js/player.js
index d32062c6..353a5296 100644
--- a/assets/js/player.js
+++ b/assets/js/player.js
@@ -3,7 +3,6 @@ var player_data = JSON.parse(document.getElementById('player_data').textContent)
var video_data = JSON.parse(document.getElementById('video_data').textContent);
var options = {
- preload: 'auto',
liveui: true,
playbackRates: [0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0],
controlBar: {