I’m creating an application where I’m cutting an image into pieces by creating a canvas.
The problem is that if I’m doing it multiple times, the devices memory cache is full because the canvas (and especially the pieces I have created) never gets deleted, I’m getting the error message in the Safari console (while running via iOS simulator):
Total canvas memory use exceeds the maximum limit (224 MB)
Therefore I’m looking for a solution on how to clear the memory, maybe if possible the canvas elements only.
I’ve found a plugin but I’m not sure how to use that.
Does anybody know how to do that?
Thank you so much in advance!