Adding support for server side rendering (ssr) #7578
Closed
mahmoudAcm
started this conversation in
General
Replies: 3 comments 1 reply
-
refer to this for the final solution |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mahmoudAcm thank you so much |
Beta Was this translation helpful? Give feedback.
1 reply
-
Good workaround,worked purfectly to me! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have used Swiper JS with NextJs 14 (app router) and I encountered a strange behavior when loading the page the swiper takes the full width and jumps even after I defined the breakpoints and the default number of
slidesPerView
!I think it is because the swiper waits for the javascript to load to apply interactivity and breakpoints so as a workaround I implemented the code below
it would be nice if the swiper doesn't wait for the javascript to apply the breakpoints and uses native style instead to support server-side rendering behavior (ssr)
Beta Was this translation helpful? Give feedback.
All reactions