loading lazy
This commit is contained in:
		
							parent
							
								
									4ee65926f2
								
							
						
					
					
						commit
						d0e124afdc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -29,7 +29,7 @@ export function ThumbnailContainer(props:{
 | 
			
		|||
}){
 | 
			
		||||
    const thumbnailurl = makeThumbnailUrl(props.content);
 | 
			
		||||
    if(props.content.content_type === "video"){
 | 
			
		||||
        return (<video src={thumbnailurl} muted autoPlay loop className={props.className} style={props.style}></video>)
 | 
			
		||||
        return (<video src={thumbnailurl} muted autoPlay loop className={props.className} style={props.style} loading="lazy"></video>)
 | 
			
		||||
    }
 | 
			
		||||
    else return (<img src={thumbnailurl} className={props.className} style={props.style} loading="lazy"></img>)
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue