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.
This is a (multiple allowed):
bug
enhancement
feature-discussion (RFC)
Swiper Version: 4.3.5
Platform/Target and Browser Versions: CHROME
Live Link or JSFiddle/Codepen or website with isssue: https://jsfiddle.net/bqv2137n/11/
What you did
When using
initialSlide
setting together withvirtual
, there is extra computing happening. Despite the value ofinitialSlide
, Swiper currently always callsrenderSlide
with0
&1
indexes before renderinginitialSlide
slide. This is costly, when mycreateSlide()
function is heavy.Expected Behavior
Console Output:
Actual Behavior
Console Output:
The text was updated successfully, but these errors were encountered: