AnimTrap
AnimTrap copied to clipboard
Unlimited Rain drops are being created
Memory Management Bug
By looking at the code it can be guessed that unlimited amount of div elements will be created and after the usage they are not been destroyed. It can lead to memory errors of the user computer.
It need to be fixed ASAP
Workaround
One possible solution is to make rain drops disappear from the array itself after hitting the bottom of screen.
This can be done via an event, if this is possible i suggest you to stop creating new rain drops but use instead ones already in list to gain perfomance
yeah.I'll admit that a lot of div tags is getting up here. I am going to be removed now.
What about the workaround i mentioned?
We used to try to reduce javascript frequently some animation effect. so I will remove demo page rain effect and this code too.
Well we need JS for create this, i suppose there is a CSS way for this. But it wont be supported by all browsers
yeaah..that's a cool idea.
Issue is still there