MediaAttachmentGrid: preload=metadata for videos
This commit is contained in:
		
							parent
							
								
									b58e2a50e3
								
							
						
					
					
						commit
						7e5692549d
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -207,6 +207,7 @@ const MediaAttachmentGrid: Component<{
 | 
			
		|||
                  style={style()}
 | 
			
		||||
                  data-sort={index}
 | 
			
		||||
                  data-media-type={item().type}
 | 
			
		||||
                  preload="metadata"
 | 
			
		||||
                />
 | 
			
		||||
              </Match>
 | 
			
		||||
              <Match when={itemType() === "gifv"}>
 | 
			
		||||
| 
						 | 
				
			
			@ -222,6 +223,7 @@ const MediaAttachmentGrid: Component<{
 | 
			
		|||
                  style={style()}
 | 
			
		||||
                  data-sort={index}
 | 
			
		||||
                  data-media-type={item().type}
 | 
			
		||||
                  preload="metadata"
 | 
			
		||||
                />
 | 
			
		||||
              </Match>
 | 
			
		||||
              <Match when={itemType() === "audio"}>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue