Jelajahi Sumber

preload=metadata on videos

George S. Baugh 5 tahun lalu
induk
melakukan
38a77e2a7d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      www/templates/posts.tx

+ 1 - 1
www/templates/posts.tx

@@ -22,7 +22,7 @@
         <a href="<: $route :>/<: $post.id :>" class="tile">
         : }
         : if ($post.is_video) {
-            <video class="responsive" controls poster="<: $post.preview :>" >
+            <video preload="metadata" class="responsive" controls poster="<: $post.preview :>" >
                 <source src="<: $post.href :>" type="<: $post.content_type :>" />
                 Your browser does not support the video tag.
             </video>