Swiper Js styles take time to load after page refresh in Next JS. Swiper slides are stretched till Next Js loads style. How to fix this? #7242
Replies: 5 comments 11 replies
-
I also have the same question as you. I wonder if you have solved this problem yet? |
Beta Was this translation helpful? Give feedback.
-
I put this code in component. Very confused. What does it have to do with it? |
Beta Was this translation helpful? Give feedback.
-
Did you find a solution for that?! |
Beta Was this translation helpful? Give feedback.
-
I am facing the same problem. Do you have any solution for this? |
Beta Was this translation helpful? Give feedback.
-
Please mention if there's a solution thank you |
Beta Was this translation helpful? Give feedback.
-
I have Next 14.0.3 app with tailwind CSS. I installed swiper JS of version 11.0.5 with npm. Problem is when I reload page, swiper styles take 1 or 2 seconds to load. Swiper slides become fully stretched till Next Js loads swiper styles. Here is gif for better understanding: https://gyazo.com/5ba13d4a8eed7407cb124f2179309bb6.
Thanks in advance for any help.
My Swiper Component:
Beta Was this translation helpful? Give feedback.
All reactions