Added loading=lazy to images

• Added:
- loading=lazy to images
This commit is contained in:
mgabdev
2020-08-17 16:28:04 -05:00
parent 7dadb125a2
commit bd20fd5ac5
3 changed files with 6 additions and 4 deletions

View File

@@ -178,7 +178,7 @@ export default class StatusCard extends ImmutablePureComponent {
// : todo : use <Image />
let embed = ''
const thumbnail = interactive ?
<img alt={''} src={cardImg} className={[_s.default, _s.objectFitCover, _s.posAbs, _s.width100PC, _s.height100PC, _s.top0, _s.right0, _s.bottom0, _s.left0].join(' ')} />
<img loading='lazy' alt={''} src={cardImg} className={[_s.default, _s.objectFitCover, _s.posAbs, _s.width100PC, _s.height100PC, _s.top0, _s.right0, _s.bottom0, _s.left0].join(' ')} />
:
(
<ResponsiveClassesComponent
@@ -186,7 +186,7 @@ export default class StatusCard extends ImmutablePureComponent {
classNamesSmall={[_s.default, _s.height260PX, _s.width100PC].join(' ')}
classNamesXS={[_s.default, _s.height200PX, _s.width100PC].join(' ')}
>
<img alt={''} src={cardImg} className={[_s.default, _s.objectFitCover, _s.width100PC, _s.height100PC].join(' ')} />
<img loading='lazy' alt={''} src={cardImg} className={[_s.default, _s.objectFitCover, _s.width100PC, _s.height100PC].join(' ')} />
</ResponsiveClassesComponent>
)