Swiper premium - How to prevent Swiper-gl blocking the main threads #7276
Unanswered
anhdd-kuro
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently using swiper-gl for a slider positioned at the top of the page. However, I've encountered a problem. According to Google PageSpeed Insight, the main thread is being blocked by
Other
Upon researching what exactly the
Other
is, I've come to a conclusion. The problem gone and the point up to 97%, when I remove the GL effect.What should I do to prevent this to happen.
I've tried setTimeout, but it hasn't help too much. Additionally, since the slider is at the top of the page, using an observer to defer it doesn't seem to be providing a substantial improvement either.
Beta Was this translation helpful? Give feedback.
All reactions