loading lazy
This commit is contained in:
parent
4ee65926f2
commit
d0e124afdc
@ -29,7 +29,7 @@ export function ThumbnailContainer(props:{
|
|||||||
}){
|
}){
|
||||||
const thumbnailurl = makeThumbnailUrl(props.content);
|
const thumbnailurl = makeThumbnailUrl(props.content);
|
||||||
if(props.content.content_type === "video"){
|
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>)
|
else return (<img src={thumbnailurl} className={props.className} style={props.style} loading="lazy"></img>)
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user