From efc294c45b0bcd022109e913cd2df165360cfabd Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Mon, 15 May 2023 14:48:03 +0300 Subject: [PATCH] fix(core): don't call update() on lazy loaded in css mode --- src/core/events/onLoad.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/events/onLoad.js b/src/core/events/onLoad.js index d4c447434..ffa441dd1 100644 --- a/src/core/events/onLoad.js +++ b/src/core/events/onLoad.js @@ -3,5 +3,6 @@ import { processLazyPreloader } from '../../shared/process-lazy-preloader.js'; export default function onLoad(e) { const swiper = this; processLazyPreloader(swiper, e.target); + if (swiper.params.cssMode) return; swiper.update(); }