diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-03-05 15:22:04 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-03-05 15:22:04 -0600 |
| commit | a65998274fffd1334cf4d3d0f79a58e78b1b450e (patch) | |
| tree | 9401cdd691a5793254dd8f7ce9930fa1f4d19bda | |
| parent | b2f4a0276a0c9974e3c2e09eb2ea1e4b8e9bbabb (diff) | |
| download | invidious-0.15.0.tar.gz invidious-0.15.0.tar.bz2 invidious-0.15.0.zip | |
Defer loading videojs-share until last0.15.0
| -rw-r--r-- | src/invidious/views/components/player.ecr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 99f99c58..e2cfa3a1 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -137,8 +137,6 @@ player.on('error', function(event) { } }); -player.share(shareOptions); - <% if params[:video_start] > 0 || params[:video_end] > 0 %> player.markers({ onMarkerReached: function(marker) { @@ -188,4 +186,7 @@ if (bpb) { }); } <% end %> + +// Since videojs-share can sometimes be blocked, we try to load it last +player.share(shareOptions); </script> |
