mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
disabled lazy loading on heroes
This commit is contained in:
parent
74b056abf1
commit
df75624a2f
1 changed files with 3 additions and 2 deletions
|
@ -100,7 +100,8 @@ export const FlowSwiperHero: FC<Props> = ({ heroes }) => {
|
||||||
speed={3000}
|
speed={3000}
|
||||||
className={styles.swiper}
|
className={styles.swiper}
|
||||||
lazy={{
|
lazy={{
|
||||||
loadPrevNextAmount: 3,
|
loadPrevNextAmount: 5,
|
||||||
|
checkInView: false,
|
||||||
}}
|
}}
|
||||||
loop
|
loop
|
||||||
slidesPerView={1}
|
slidesPerView={1}
|
||||||
|
@ -122,7 +123,7 @@ export const FlowSwiperHero: FC<Props> = ({ heroes }) => {
|
||||||
.map(node => (
|
.map(node => (
|
||||||
<SwiperSlide key={node.id}>
|
<SwiperSlide key={node.id}>
|
||||||
<img
|
<img
|
||||||
data-src={getURLFromString(node.thumbnail!, preset)}
|
src={getURLFromString(node.thumbnail!, preset)}
|
||||||
alt=""
|
alt=""
|
||||||
className={classNames(styles.preview, 'swiper-lazy')}
|
className={classNames(styles.preview, 'swiper-lazy')}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue