I'm programming a quiz app in HTML5 but I'm having a problem where an object doesn't get reliably destroyed. This messes up the app and causes it to freeze. The object only has a "disappearing" animation so normally when it is created it will get destroyed automatically. On iOS it just stays there. I'm testing on an older iPad mini and it could be a processing speed issue but I need the app to work on all kinds of devices, even slow ones. I inactivated most of the code and the issue still occurs. The green diamond should appear then disappear but it always ends up staying and not getting destroyed after a while. I set it up for testing so that every half second the green diamond will appear. Then it should disappear. There is also a counter next to it showing how many there are. It should always be either 0 or 1 but sometimes it gets higher and then the diamond doesn't go away. You can see this behavior here: https://quizninja.net/studentquizpag...obile_new.html It seems fine on other devices (not iOS). This is a really basic event so I'm not sure why it should be a problem.
On another note, I only need the graphic in order to allow for a delay between two events. Is there another way to have an event fire after a delay? I haven't figured out how to do this yet, so using a disappearing graphic was my workaround. Thanks,