mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36: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}
|
||||
className={styles.swiper}
|
||||
lazy={{
|
||||
loadPrevNextAmount: 3,
|
||||
loadPrevNextAmount: 5,
|
||||
checkInView: false,
|
||||
}}
|
||||
loop
|
||||
slidesPerView={1}
|
||||
|
@ -122,7 +123,7 @@ export const FlowSwiperHero: FC<Props> = ({ heroes }) => {
|
|||
.map(node => (
|
||||
<SwiperSlide key={node.id}>
|
||||
<img
|
||||
data-src={getURLFromString(node.thumbnail!, preset)}
|
||||
src={getURLFromString(node.thumbnail!, preset)}
|
||||
alt=""
|
||||
className={classNames(styles.preview, 'swiper-lazy')}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue