Skip to content

Commit

Permalink
Defer loading videojs-share until last
Browse files Browse the repository at this point in the history
  • Loading branch information
omarroth committed Mar 5, 2019
1 parent b2f4a02 commit a659982
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/invidious/views/components/player.ecr
Expand Up @@ -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) {
Expand Down Expand Up @@ -188,4 +186,7 @@ if (bpb) {
});
}
<% end %>
// Since videojs-share can sometimes be blocked, we try to load it last
player.share(shareOptions);
</script>

0 comments on commit a659982

Please sign in to comment.