codecomputerlove/PhotoSwipe — Issue #289: PhotoSwipe crashes iPad's Safari
Author: leondealmeida
Created: 2012-03-07 21:41:54+00:00
State: open

On a website we loaded MANY images (~300). If we keep tapping the forward arrow, after a few seconds (~10) the image swapping will start slowing down and will eventually halt, and sustaining tapping for a few more moments will bring Safari down.

My take on this is that the click event is fired, but since we're clicking like mad, there's not enough time for the events to be processed and this somehow makes Safari crash (memory?).

A suggestion would be an optional timeout to restore the click event handler to the arrows after a click event - though I am not even sure this is useful for anyone. In our case people can bring Safari down to gain access to the iPad on an exhibition (buttons are all covered, no way to click them) so we will probably patch this - but apart from this, I don't see any real case scenario where an user would change pictures in a frenzied pace to bring down Safari on his own tablet.