No lazy loading when loading in the carousel

This commit is contained in:
Lim Chee Aun 2023-01-06 22:08:22 +08:00
parent 6156f88721
commit 096712a9dd

View file

@ -742,7 +742,7 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
alt={description}
width={width}
height={height}
loading="lazy"
loading={showOriginal ? 'eager' : 'lazy'}
style={
!showOriginal && {
backgroundColor: