loading lazy

This commit is contained in:
monoid 2022-06-26 14:46:15 +09:00
parent 4ee65926f2
commit d0e124afdc

View File

@ -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>)
}