simpleParallax.js icon indicating copy to clipboard operation
simpleParallax.js copied to clipboard

It's laggy on iPhone

Open fransoudelaar opened this issue 4 years ago • 13 comments

Please check it out on iPhone. It's really laggy. The examples on https://simpleparallax.com/ are laggy as well.

Testet with: iPhone XR iOS: 13.4.1 Safari

fransoudelaar avatar May 28 '20 08:05 fransoudelaar

Issue has been fixed. Thanks!

geosigno avatar Jun 01 '20 05:06 geosigno

Nice job. Do you release a new version?

fransoudelaar avatar Jun 01 '20 11:06 fransoudelaar

The issue was on the demo website itself, not the plugin.

geosigno avatar Jun 01 '20 17:06 geosigno

The issue still occurs on the demo website as far as I can see on my iPhone. I also encountered this issue on my implementation which is why I report it.

fransoudelaar avatar Jun 03 '20 06:06 fransoudelaar

I captured a screen recording of the behaviour on my iPhone XR in Safari: https://we.tl/t-5pbKSatUgZ

fransoudelaar avatar Jun 03 '20 06:06 fransoudelaar

This is definitely not good! I'll try to reproduce on my side. Was it fixed at some point on the demo website on your phone?

geosigno avatar Jun 03 '20 08:06 geosigno

Not that I know.

fransoudelaar avatar Jun 03 '20 10:06 fransoudelaar

I was able to reproduce it on an other iPhone 8 (exactly the same as mine...). I started to debug it and it seems the delay parameter - that will attach the CSS transition - is causing the issue. By default this delay is set at 0.4.

fransoudelaar, could you please try to set that delay at 0, and check on your local if you are still facing the issue?

geosigno avatar Jun 07 '20 16:06 geosigno

I confirm that setting the delay parameter to 0 fix the issue! Thanks

P4KM4N avatar Jun 08 '20 17:06 P4KM4N

A delay of 0.2 seems to fix the issue as well on my iPhone XR.

My images got a transition: all 0.3s ease from my lazyloaded classname which was fading in the images. This was conflicting the parallax transition. I removed the transition of the lazyloaded style and changed the delay to 0.2. Works fine now.

fransoudelaar avatar Jun 09 '20 05:06 fransoudelaar

hi my iphone xr has screen stuttering problems, do you think this could solve it?

luchi222 avatar Jun 17 '20 14:06 luchi222

The issue seems related to https://bugs.chromium.org/p/chromium/issues/detail?id=899130

geosigno avatar Jun 23 '20 07:06 geosigno

Same behavior solved with setting the delay. Awesome!

maroluke avatar Dec 08 '21 13:12 maroluke