You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed the autoplay functionality seems doesn't use best practices, because Lighthouse is not happy with it. So if autoplay is just enabled for the swiper on screen, we could pass the check. Check started failing when we created the project detail view, which was the first page to contain more then one image swiper (just one project existed at the beginning)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Autoplay is enabled on all swipers. Which is unnecessary (JS compute time) if swipers aren't on screen. Unfortunately, there's no option in Swiper.js to just enable autoplay when swiper is visible
We could add something with Intersection Observer API to enable this.
Indeed the autoplay functionality seems doesn't use best practices, because Lighthouse is not happy with it. So if autoplay is just enabled for the swiper on screen, we could pass the check. Check started failing when we created the project detail view, which was the first page to contain more then one image swiper (just one project existed at the beginning)
Beta Was this translation helpful? Give feedback.
All reactions