From b9d30cf85e6bf3804746f15d5b4ff0ba5a815d05 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Wed, 27 Apr 2016 01:28:45 -0400 Subject: [PATCH] Remove video ready state poll (video now starts on first try) --- js/page/watch.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/js/page/watch.js b/js/page/watch.js index 274074c4c..761c9ef3e 100644 --- a/js/page/watch.js +++ b/js/page/watch.js @@ -8,20 +8,11 @@ var WatchPage = React.createClass({ propTypes: { name: React.PropTypes.string, }, - updateVideo: function(video, firstRun=true) { - if (!video.readyState) { - if (!firstRun) { // On the first run, give the browser's initial load a chance to work - video.load(); - } - setTimeout(() => { - this.updateVideo(video, false); - }, 3000); - } - }, + render: function() { return (
- +
); }