mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Exclude lazyload class when not lazy loading
This commit is contained in:
parent
9dccab00c2
commit
42c2755f5e
1 changed files with 4 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue