Exclude lazyload class when not lazy loading

This commit is contained in:
Sam Carlton 2022-07-07 13:27:59 -05:00
parent 9dccab00c2
commit 42c2755f5e

View file

@ -53,6 +53,9 @@ function makeImgAttributes ( src ) {
<img
{ ...makeImgAttributes( images.imgSrc ) }
alt={ video.name }
class="absolute inset-0 h-full w-full object-cover lazyload"
class={ [
'absolute inset-0 h-full w-full object-cover',
loading === 'lazy' ? 'lazyload' : ''
].join(' ') }
>
</picture>