Skip to content

Commit 40ff699

Browse files
header fixes
1 parent d305b3f commit 40ff699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/header.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default {
3333
]),
3434
h('div', { class: 'header-block' }, [
3535
h('div', { class: 'header-block__img' }, [
36-
h('img', { src: props.podcast?.image, alt: props.podcast?.title }),
36+
h('img', { src: props.podcast?.image, alt: props.podcast?.title, loading: 'lazy' }),
3737
]),
3838
h('div', { class: 'header-block__title' }, [
3939
h('h1', [props.podcast?.title]),
@@ -48,7 +48,7 @@ export default {
4848
h('span', {}, [subscribe[props.podcast?.lang || 'default']]),
4949
]),
5050
]),
51-
h('img', { class: 'header-block__bg', src: props.podcast?.image }),
51+
h('img', { class: 'header-block__bg', src: props.podcast?.image, loading: 'lazy' }),
5252
h('div', { class: 'header-block__overlay' }),
5353
])
5454
},

0 commit comments

Comments
 (0)