Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swiper.css is not loading #94

Open
hosseinghs opened this issue Oct 4, 2023 · 4 comments
Open

swiper.css is not loading #94

hosseinghs opened this issue Oct 4, 2023 · 4 comments

Comments

@hosseinghs
Copy link

so I checked network tab to see if everything swiper needs is being loaded and I found out some times in some pages of mine swiper.css won't be loaded in first time, after one refresh it's loaded and everything will just fine.
so why is that? I can't swipe my swiper cards on the first load of the page

@fjh1610
Copy link

fjh1610 commented Dec 15, 2023

I also encountered this problem, have you solved it?
image

@cpreston321
Copy link
Owner

@fjh1610 @hosseinghs What swiper version are you on if so are you overwriting it within the package.json?

The newer swiper has a different path to css that cause it to break if you are using a newer version

@cpreston321
Copy link
Owner

Also can you try the newly update swiper that switches to elements ? This will fix a bunch of issues people have been having with swiper itself. #109

@hosseinghs
Copy link
Author

I also encountered this problem, have you solved it? image

sadly no, i was developing SPA and I had to deliver it on short notice, so I fix tricked it by over passing SPA navigation and refetching all of the assets!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants