vidhimudaliar commited on
Commit
6602a5b
·
verified ·
1 Parent(s): 2b77f26

Update assets/js/all_videos.js

Browse files
Files changed (1) hide show
  1. assets/js/all_videos.js +3 -5
assets/js/all_videos.js CHANGED
@@ -62,16 +62,14 @@ function render(rows) {
62
  </td>
63
  <td>${start}-${end}</td>
64
  <td class="video-cell">
65
- // <video preload="metadata" controls>
66
- // <source src="${video_url}" type="video/mp4">
67
- <video preload="none" controls> // lazy loading
68
- <source data-src="${video_url}" type="video/mp4" /> // lazy loading
69
  </video>
70
  </td>
71
  `;
72
 
73
  const videoEl = tr.querySelector("video");
74
- setupLazyVideo(videoEl); // lazy loading
75
  attachLabeledLoop(videoEl, {
76
  label,
77
  startFrame: start,
 
62
  </td>
63
  <td>${start}-${end}</td>
64
  <td class="video-cell">
65
+ <video preload="none" controls>
66
+ <source data-src="${video_url}" type="video/mp4" />
 
 
67
  </video>
68
  </td>
69
  `;
70
 
71
  const videoEl = tr.querySelector("video");
72
+ setupLazyVideo(videoEl);
73
  attachLabeledLoop(videoEl, {
74
  label,
75
  startFrame: start,