You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using initialSlide setting together with virtual, there is extra computing happening. Despite the value of initialSlide, Swiper currently always calls renderSlide with 0&1 indexes before rendering initialSlide slide. This is costly, when my createSlide() function is heavy.
--
Copied from #2755
This error still exists in v11.0.7
Check that this is really a bug
Reproduction link
https://jsfiddle.net/bqv2137n/11/
Bug description
When using initialSlide setting together with virtual, there is extra computing happening. Despite the value of initialSlide, Swiper currently always calls renderSlide with 0&1 indexes before rendering initialSlide slide. This is costly, when my createSlide() function is heavy.
--
Copied from #2755
This error still exists in v11.0.7
Expected Behavior
Console Output:
Slide 4
Slide 5
Slide 6
Actual Behavior
Console Output:
Slide 0
Slide 1
Slide 4
Slide 5
Slide 6
Swiper version
v11.0.7
Platform/Target and Browser Versions
Windows, Chrome
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: