Try decoding=sync

This commit is contained in:
Lim Chee Aun 2023-06-07 19:48:38 +08:00
parent ec88110e2d
commit e502b8e377

View file

@ -118,7 +118,7 @@ function Media({ media, to, showOriginal, autoAnimate, onClick = () => {} }) {
height={height}
data-orientation={orientation}
loading="eager"
decoding="async"
decoding="sync"
onLoad={(e) => {
e.target.closest('.media-image').style.backgroundImage = '';
e.target.closest('.media-zoom').style.display = '';