Skip to content

Commit 9e9d4b3

Browse files
committed
lazy load images
1 parent 03fa0d9 commit 9e9d4b3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/shared/components/Contentful/Image/Image.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export class ImageInner extends React.Component {
114114
data-aos-mirror={animation.animateOnScrollMirror}
115115
data-aos-anchor-placement={animation.animateOnScrollAnchor}
116116
data-aos-offset={animation.animateOnScrollOffset}
117+
loading="lazy"
117118
/>
118119
</picture>
119120
) : (
@@ -125,6 +126,7 @@ export class ImageInner extends React.Component {
125126
src={imageSources.sourcePolyfill ? imageSources.sourcePolyfill.file.url : imageSources.source.file.url}
126127
alt={image.alt || image.name}
127128
style={imgStyle}
129+
loading="lazy"
128130
/>
129131
</picture>
130132
)

src/shared/components/Contentful/Tabs/themes/vertical.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ li.tab {
5353
padding-right: 20px;
5454
border-bottom: 5px solid $gray-border-color;
5555
min-width: auto !important;
56+
white-space: nowrap;
5657

5758
&:first-child {
5859
padding-left: 7px;

0 commit comments

Comments
 (0)