iframe - slow speed

Everything else that doesn't fall into one of the other categories.
User avatar
J. Baker
Posts: 27
Joined: Tue Dec 23, 2014 11:58 pm
Location: USA
Contact:

iframe - slow speed

Post by J. Baker »

Just did a test and all was fine until I tried it on my iPad Mini (latest model). Without the iframe, speed is fine/normal. Add an iframe and the animation creeps. On my desktop there is no slow down.

No iframe

https://posemotion.com/sb/Snow%20Test.html

iframe

https://posemotion.com/sb/Index.htm
www.posemotion.com

Mac: OS X 10.13.6 / 1.4GHz Intel Core 2 Duo / 2GB 1067MHz DDR3 / Nvidia 320M

PC: Win XP & Win 7 / AMD Athlon 64 4000+ / 3GB 333MHz DDR / Nvidia 720GT
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: iframe - slow speed

Post by Peter »

It looks OK on my Android phone (Xiaomi Mi 8). There is no noticeable difference in the speed of the animation.
User avatar
J. Baker
Posts: 27
Joined: Tue Dec 23, 2014 11:58 pm
Location: USA
Contact:

Re: iframe - slow speed

Post by J. Baker »

Interesting. Thanks for the response!
www.posemotion.com

Mac: OS X 10.13.6 / 1.4GHz Intel Core 2 Duo / 2GB 1067MHz DDR3 / Nvidia 320M

PC: Win XP & Win 7 / AMD Athlon 64 4000+ / 3GB 333MHz DDR / Nvidia 720GT
User avatar
J. Baker
Posts: 27
Joined: Tue Dec 23, 2014 11:58 pm
Location: USA
Contact:

Re: iframe - slow speed

Post by J. Baker »

I found out that if you tap the screen, it runs at normal speed on my iPad. Maybe it's an Apple thing.
www.posemotion.com

Mac: OS X 10.13.6 / 1.4GHz Intel Core 2 Duo / 2GB 1067MHz DDR3 / Nvidia 320M

PC: Win XP & Win 7 / AMD Athlon 64 4000+ / 3GB 333MHz DDR / Nvidia 720GT
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: iframe - slow speed

Post by Peter »

Perhaps this one?
Animations run extremely slow inside iframes in Safari iOS... Anybody knows a workaround? wrote:
The slow down of (some) animations in Safari is caused by the RAF throttle. We did testing with different scenario's to be able to find the root cause and replicate. See https://adpiler.com/blog/the-full-solut ... in-safari/

Conclusion: Safari seems to throttle the RAF (requestanimationframe) when the iframe is cross-origin. The throttle will be disabled when a user will interact with the banner, like clicking, but even right-mouse click would do. For the use case of a banner ad, that isn’t a real solution.
Post Reply