Adding support for server side rendering (ssr) #7578
Closed
mahmoudAcm
started this conversation in
General
Replies: 1 comment
-
refer to this for the final solution |
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
-
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