mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Defer loading videojs-share until last
This commit is contained in:
parent
b2f4a0276a
commit
a65998274f
1 changed files with 3 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue